mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 00:00:08 +01:00
keyfile: fix writing IPv6 addresses with new format
This commit is contained in:
parent
31590021ab
commit
b04ebe5cc3
1 changed files with 3 additions and 3 deletions
|
|
@ -298,9 +298,9 @@ ip6_addr_writer (GKeyFile *file,
|
|||
GValueArray *values = g_ptr_array_index (array, i);
|
||||
char *key_name, *ip6_addr;
|
||||
|
||||
if (values->n_values % 2) {
|
||||
nm_warning ("%s: error writing IP6 address %d; address array length"
|
||||
" %d is not a multiple of 2.",
|
||||
if (values->n_values != 3) {
|
||||
nm_warning ("%s: error writing IP6 address %d (address array length "
|
||||
"%d is not 3)",
|
||||
__func__, i, values->n_values);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue