From 7b0ff352fa289f4b8ec398c36c07e01acc7cc413 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org" Date: Thu, 24 Nov 2005 09:31:53 +0000 Subject: Several fixes by Jones Desougi: missing or confusing error message fixes for ipporthash minor correction in debugging in nethash unified memory allocations in ipset --- ipset_nethash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipset_nethash.c') diff --git a/ipset_nethash.c b/ipset_nethash.c index 6be0dce..758c4c1 100644 --- a/ipset_nethash.c +++ b/ipset_nethash.c @@ -130,7 +130,7 @@ ip_set_ip_t adt_parser(unsigned cmd, const char *optarg, void *data) { struct ip_set_req_nethash *mydata = (struct ip_set_req_nethash *) data; - char *saved = strdup(optarg); + char *saved = ipset_strdup(optarg); char *ptr, *tmp = saved; ip_set_ip_t cidr; @@ -249,7 +249,7 @@ static char * unpack_ip_tostring(ip_set_ip_t ip, unsigned options) ((unsigned char *)&ip)[3], b); - DP("%s %s", ip_tostring(htonl(ip), options), buf); + DP("%s %s", ip_tostring(ntohl(ip), options), buf); return buf; } -- cgit v1.2.3