From be8cbaecc2490b561bb7d7df81da1bb6258e92b5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Sep 2011 13:47:51 +0200 Subject: [PATCH] fix parsing of ipaddr + netmask --- proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto.c b/proto.c index 99f083c..c54206f 100644 --- 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 * -- 2.11.0