From: /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org Date: Mon, 9 May 2005 06:48:49 +0000 (+0000) Subject: Parser bug, fixed by Tom Eastep X-Git-Tag: v2.4.6~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd983e1fd4f111257722c833d3393dfa21814ace;p=ipset Parser bug, fixed by Tom Eastep --- diff --git a/ipset_nethash.c b/ipset_nethash.c index 0934571..57f0888 100644 --- a/ipset_nethash.c +++ b/ipset_nethash.c @@ -296,7 +296,7 @@ static char * net_tostring(ip_set_ip_t ip, unsigned options) static void parse_net(const char *str, ip_set_ip_t *ip) { char *saved = strdup(str); - char *ptr, *tmp; + char *ptr, *tmp = saved; ip_set_ip_t cidr; ptr = strsep(&tmp, "/");