]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit49cdc4c74918a5576cb93b679629714d8a9ef399
treef5b8f372a50787f8ca8b1d9aad1de6f8ed0eab33
parentd3e2a1110cae6ee5eeb1f9a97addf03e974f12e6
netfilter: nft_range: add the missing NULL pointer check

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

Fixes: 0f3cd9b36977 ("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