From 3c4dd20b84408bd6d619b3bb18d663f143eb773d Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" 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 + libiptc/libip6tc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index 392a9de..2e8647c 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; } diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c index 1c1f14e..8ca5ea6 100644 --- a/libiptc/libip6tc.c +++ b/libiptc/libip6tc.c @@ -242,6 +242,7 @@ is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b, mptr = matchmask + sizeof(STRUCT_ENTRY); if (IP6T_MATCH_ITERATE(a, match_different, a->elems, b->elems, &mptr)) return NULL; + mptr += IP6T_ALIGN(sizeof(struct ip6t_entry_target)); return mptr; } -- cgit v1.2.3