]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c0d167e7a71ef858c495611e940becc56a8e193
tree4c68ee80d0d77d19a72498a3c2dde28acaa5fc6e
parent8154d71f6c1a7fc21722f2d9c616a3e0aab45b56
netfilter: nft_ct: fix null pointer in ct expectations support

nf_ct_helper_ext_add may return null, which must then be checked.

Fixes: 90f5f7b8a249 ("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