diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-10-03 12:52:55 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:49 +0100 |
commit | 0363995ef12c2377875f9ab60a43b9b601cb2560 (patch) | |
tree | 5a0a88619dc0c424cfa8dfe73a0b3ebd541d7909 /iptables/nft-shared.h | |
parent | d6a127cd5710f8c60e95bfd0378ca352c07140a9 (diff) |
xtables: arp: Store target entry properly and compare them relevantly
Fixes a segfault issue when deleting a rule.
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 3d1f433f..7260fddc 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -178,11 +178,11 @@ extern char *opcodes[]; #include <linux/netfilter_arp/arp_tables.h> -static inline struct xt_entry_target *nft_arp_get_target(struct arpt_entry *fw) +static inline struct xt_entry_target *nft_arp_get_target(struct arpt_entry *fw) { struct xt_entry_target **target; - target = (void *) fw + fw->target_offset; + target = (void *) &fw->elems; return *target; } |