diff options
Diffstat (limited to 'ipset_ipporthash.c')
-rw-r--r-- | ipset_ipporthash.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ipset_ipporthash.c b/ipset_ipporthash.c index a839bd5..be8cd85 100644 --- a/ipset_ipporthash.c +++ b/ipset_ipporthash.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_ipporthash.h> +#include <limits.h> /* UINT_MAX */ +#include <stdio.h> /* *printf */ +#include <string.h> /* mem*, str* */ #include "ipset.h" +#include <linux/netfilter_ipv4/ip_set_ipporthash.h> + #define OPT_CREATE_HASHSIZE 0x01U #define OPT_CREATE_PROBES 0x02U #define OPT_CREATE_RESIZE 0x04U @@ -210,7 +209,7 @@ adt_parser(unsigned cmd, const char *optarg, void *data) else exit_error(PARAMETER_PROBLEM, "IP address and port must be specified: ip,port"); - free(saved); + ipset_free(saved); return 1; }; |