summaryrefslogtreecommitdiffstats
path: root/tests/nft-expr_hash-test.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-02-19 18:19:03 +0100
committerFlorian Westphal <fw@strlen.de>2017-02-27 17:10:43 +0100
commit03f1fc078e67b0137d3885d6701098101932f2d0 (patch)
treea83d5afadb2c099712cbd35e28678eb0d7ef5476 /tests/nft-expr_hash-test.c
parent1279f57426c15d8553288629be25fc6c6f897d18 (diff)
object: don't set NFTNL_OBJ_TYPE unless obj->ops is non-null
If nft sets an invalid type, nftnl_obj_ops_lookup will return NULL. In this case we must not set NFTNL_OBJ_TYPE flag, else we later get crash in nftnl_obj_nlmsg_build_payload as it dereferences obj->ops. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nft-expr_hash-test.c')
0 files changed, 0 insertions, 0 deletions