summaryrefslogtreecommitdiffstats
path: root/include/libnftables/rule.h
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2013-10-25 09:55:31 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2013-10-27 21:31:44 +0100
commitfe59236952e037029c484b3f2ee75c658df90a9c (patch)
treee9cb5938508d98c73c8cd967a2f1a2748e7eef42 /include/libnftables/rule.h
parent032b73d499d76bf16a62f818373385dcc01f42fd (diff)
src: fix possible null pointer dereference in nft_*_attr_get_*
As reported by John Sager, nft_set_attr_get_u32 can cause a segfault because nft_set_attr_get can return NULL. Check for a non-NULL pointer before dereferencing. This closes netfilter bugzilla #868. [ I have mangled this patch to solve possible null pointer dereference with get operations with rule objects --pablo ] Signed-off-by: Phil Oester <kernel@linuxace.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/rule.h')
0 files changed, 0 insertions, 0 deletions