diff options
author | /C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu> | 2008-10-25 12:50:34 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu> | 2008-10-25 12:50:34 +0000 |
commit | 894ebbc905ea760bab182513a74dc8bf3c2952cd (patch) | |
tree | ee73c1f0d37fc4dfcf2bee2f3afbe541218e3d01 /ipset_ipportnethash.c | |
parent | 46fb717308d9d717439badd48c150e32a3508a90 (diff) |
2.4.3
- Include file <limits.h> was missing from userspace set type
modules.
Diffstat (limited to 'ipset_ipportnethash.c')
-rw-r--r-- | ipset_ipportnethash.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ipset_ipportnethash.c b/ipset_ipportnethash.c index 4707189..83a83fe 100644 --- a/ipset_ipportnethash.c +++ b/ipset_ipportnethash.c @@ -15,15 +15,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <arpa/inet.h> - -#include <linux/netfilter_ipv4/ip_set_ipportnethash.h> +#include <limits.h> /* UINT_MAX */ +#include <stdio.h> /* *printf */ +#include <string.h> /* mem*, str* */ #include "ipset.h" +#include <linux/netfilter_ipv4/ip_set_ipportnethash.h> + #define OPT_CREATE_HASHSIZE 0x01U #define OPT_CREATE_PROBES 0x02U #define OPT_CREATE_RESIZE 0x04U @@ -230,7 +229,7 @@ adt_parser(unsigned cmd, const char *optarg, void *data) mydata->cidr = cidr; parse_ip(ptr, &mydata->ip1); - free(saved); + ipset_free(saved); return 1; }; |