summaryrefslogtreecommitdiffstats
path: root/ipset_nethash.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>2005-11-24 09:31:53 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>2005-11-24 09:31:53 +0000
commit7b0ff352fa289f4b8ec398c36c07e01acc7cc413 (patch)
tree9b5f435ef14f26f98ee27f9ae8fda950402dd00a /ipset_nethash.c
parent6619d0f978ca0748293f98952b74ebef81ebd6b1 (diff)
Several fixes by Jones Desougi:
missing or confusing error message fixes for ipporthash minor correction in debugging in nethash unified memory allocations in ipset
Diffstat (limited to 'ipset_nethash.c')
-rw-r--r--ipset_nethash.c4
1 files changed, 2 insertions, 2 deletions
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;
}