]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_range: add the missing NULL pointer check
authorLiping Zhang <zlpnobody@gmail.com>
Mon, 21 Nov 2016 13:18:23 +0000 (21:18 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Nov 2016 13:43:35 +0000 (14:43 +0100)
commit5e13e43008cacac22d5653b34bd59850f00a5af1
treef5b8f372a50787f8ca8b1d9aad1de6f8ed0eab33
parent959eb9fd5f7cae7aa9e849966e75e56829648109
netfilter: nft_range: add the missing NULL pointer check

Otherwise, kernel panic will happen if the user does not specify
the related attributes.

Fixes: 7a14dbb3696f ("netfilter: nf_tables: add range expression")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_range.c