]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_extdhr: Drop pointless check of tprot_set
authorPhil Sutter <phil@nwl.cc>
Fri, 11 Jun 2021 17:08:26 +0000 (19:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 Jun 2021 20:25:01 +0000 (22:25 +0200)
commit0bcd5df4d6f685bffac285478dd1cc3944d269ef
treebd9ced74560354e8339bee595724f3a3d9ed22e0
parent9176db8647bcea2a5d04edcf8b3ab470dfae20cd
netfilter: nft_extdhr: Drop pointless check of tprot_set

Pablo says, tprot_set is only there to detect if tprot was set to
IPPROTO_IP as that evaluates to zero. Therefore, code asserting a
different value in tprot does not need to check tprot_set.

Fixes: 5c671a6a21338 ("netfilter: nft_exthdr: add TCP option matching")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_exthdr.c