mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 10:38:30 +02:00
parent
b05c8dbda5
commit
b9f9fd39ab
1 changed files with 6 additions and 10 deletions
|
|
@ -230,11 +230,9 @@ ip4_addresses_check_and_copy (GBinding *binding,
|
||||||
|
|
||||||
strings = g_value_get_boxed (source_value);
|
strings = g_value_get_boxed (source_value);
|
||||||
|
|
||||||
if (strings) {
|
for (i = 0; strings[i]; i++) {
|
||||||
for (i = 0; strings[i]; i++) {
|
if (!ip_string_parse (strings[i], AF_INET, &addr, NULL))
|
||||||
if (!ip_string_parse (strings[i], AF_INET, &addr, NULL))
|
return FALSE;
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_value_set_boxed (target_value, strings);
|
g_value_set_boxed (target_value, strings);
|
||||||
|
|
@ -692,11 +690,9 @@ ip6_addresses_check_and_copy (GBinding *binding,
|
||||||
|
|
||||||
strings = g_value_get_boxed (source_value);
|
strings = g_value_get_boxed (source_value);
|
||||||
|
|
||||||
if (strings) {
|
for (i = 0; strings[i]; i++) {
|
||||||
for (i = 0; strings[i]; i++) {
|
if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL))
|
||||||
if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL))
|
return FALSE;
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_value_set_boxed (target_value, strings);
|
g_value_set_boxed (target_value, strings);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue