From 5ee88622ef8f38e5f6b6c60ca1ab61d8f93a0e82 Mon Sep 17 00:00:00 2001 From: Pablo Neira Date: Thu, 23 Jun 2005 08:51:18 +0000 Subject: fix deletion of targets where kernel size != userspace size (Pablo Neira) --- libiptc/libip4tc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libiptc/libip4tc.c') diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index 392a9de1..2e8647cd 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -210,6 +210,7 @@ is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b, unsigned char *matchmask) mptr = matchmask + sizeof(STRUCT_ENTRY); if (IPT_MATCH_ITERATE(a, match_different, a->elems, b->elems, &mptr)) return NULL; + mptr += IPT_ALIGN(sizeof(struct ipt_entry_target)); return mptr; } -- cgit v1.2.3