mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 18:50:07 +01: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);
|
||||
|
||||
if (strings) {
|
||||
for (i = 0; strings[i]; i++) {
|
||||
if (!ip_string_parse (strings[i], AF_INET, &addr, NULL))
|
||||
return FALSE;
|
||||
}
|
||||
for (i = 0; strings[i]; i++) {
|
||||
if (!ip_string_parse (strings[i], AF_INET, &addr, NULL))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
if (strings) {
|
||||
for (i = 0; strings[i]; i++) {
|
||||
if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL))
|
||||
return FALSE;
|
||||
}
|
||||
for (i = 0; strings[i]; i++) {
|
||||
if (!ip_string_parse (strings[i], AF_INET6, &addr, NULL))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_value_set_boxed (target_value, strings);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue