netfilter: nft_ct: fix null pointer in ct expectations support
authorStéphane Veyret <sveyret@gmail.com>
Wed, 19 Jun 2019 07:03:14 +0000 (09:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Jun 2019 15:48:35 +0000 (17:48 +0200)
commit2f0513d487d2619c751fd08f5b7c64e759435ff4
tree4c68ee80d0d77d19a72498a3c2dde28acaa5fc6e
parent72c5e11854afb842e157353be0291d65b91725f5
netfilter: nft_ct: fix null pointer in ct expectations support

nf_ct_helper_ext_add may return null, which must then be checked.

Fixes: 857b46027d6f ("netfilter: nft_ct: add ct expectations support")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c