utils: fix existing node check when keep_old/no_delete is enabled
[project/netifd.git] / proto.c
diff --git a/proto.c b/proto.c
index 99f083c..c54206f 100644 (file)
--- a/proto.c
+++ b/proto.c
@@ -45,7 +45,7 @@ parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netmask)
                        return 0;
        }
 
-       return inet_pton(af, str, addr);
+       return inet_pton(af, astr, addr);
 }
 
 struct device_addr *