diff options
author | Thomas Haller <thaller@redhat.com> | 2020-01-09 12:17:41 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-01-28 11:17:41 +0100 |
commit | 8f3b43f009795ecaa640635a7c786291539425c7 (patch) | |
tree | 2832dd2319d21cee9b3a98c5b4de61a496c5d3c3 /shared/nm-keyfile/nm-keyfile.c | |
parent | 95ea3ccad8f0d22ec55d7cd2df3720bce262bc56 (diff) | |
download | NetworkManager-8f3b43f009795ecaa640635a7c786291539425c7.tar.gz |
all: use nm_utils_ipaddr_is_valid() instead of nm_utils_ipaddr_valid()
We should use the same "is-valid" function everywhere.
Since nm_utils_ipaddr_valid() is part of libnm, it does not qualify.
Use nm_utils_ipaddr_is_valid() instead.
Diffstat (limited to 'shared/nm-keyfile/nm-keyfile.c')
-rw-r--r-- | shared/nm-keyfile/nm-keyfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-keyfile/nm-keyfile.c b/shared/nm-keyfile/nm-keyfile.c index 535acccf7d..1eed6748a4 100644 --- a/shared/nm-keyfile/nm-keyfile.c +++ b/shared/nm-keyfile/nm-keyfile.c @@ -248,7 +248,7 @@ build_route (KeyfileReaderInfo *info, /* Next hop */ if (gateway_str && gateway_str[0]) { - if (!nm_utils_ipaddr_valid (family, gateway_str)) { + if (!nm_utils_ipaddr_is_valid (family, gateway_str)) { /* Try workaround for routes written by broken keyfile writer. * Due to bug bgo#719851, an older version of writer would have * written "a:b:c:d::/plen,metric" if the gateway was ::, instead |