summaryrefslogtreecommitdiff
path: root/shared/nm-keyfile/nm-keyfile.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-09 12:17:41 +0100
committerThomas Haller <thaller@redhat.com>2020-01-28 11:17:41 +0100
commit8f3b43f009795ecaa640635a7c786291539425c7 (patch)
tree2832dd2319d21cee9b3a98c5b4de61a496c5d3c3 /shared/nm-keyfile/nm-keyfile.c
parent95ea3ccad8f0d22ec55d7cd2df3720bce262bc56 (diff)
downloadNetworkManager-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.c2
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