summaryrefslogtreecommitdiffstats
path: root/ipset_ipportiphash.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipset_ipportiphash.c')
-rw-r--r--ipset_ipportiphash.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ipset_ipportiphash.c b/ipset_ipportiphash.c
index 5cb920d..84d085f 100644
--- a/ipset_ipportiphash.c
+++ b/ipset_ipportiphash.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_ipportiphash.h>
+#include <limits.h> /* UINT_MAX */
+#include <stdio.h> /* *printf */
+#include <string.h> /* mem*, str* */
#include "ipset.h"
+#include <linux/netfilter_ipv4/ip_set_ipportiphash.h>
+
#define OPT_CREATE_HASHSIZE 0x01U
#define OPT_CREATE_PROBES 0x02U
#define OPT_CREATE_RESIZE 0x04U
@@ -216,7 +215,7 @@ adt_parser(unsigned cmd, const char *optarg, void *data)
else
exit_error(PARAMETER_PROBLEM,
"IP address, port and IP address must be specified: ip,port,ip");
- free(saved);
+ ipset_free(saved);
return 1;
};