summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-12 13:47:51 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-12 13:47:53 +0200
commitbe8cbaecc2490b561bb7d7df81da1bb6258e92b5 (patch)
treefe0fa7984db752fab9f9a8463de6ccb846bcf712
parent58d2488ffe9553b908d3e10826376adeeb55d67b (diff)
fix parsing of ipaddr + netmask
-rw-r--r--proto.c2
1 files changed, 1 insertions, 1 deletions
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 *