summaryrefslogtreecommitdiff
path: root/net/dcb/dcbnl.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-05-11 15:15:15 +0300
committerFlorian Westphal <fw@strlen.de>2023-05-17 15:16:02 +0300
commite3c361b8acd636f5fe80c02849ca175201edf10c (patch)
tree2414d2eac0572f7efb5ba3a44d5d42387bf63e0a /net/dcb/dcbnl.c
parent224a876e37543eee111bf9b6aa4935080e619335 (diff)
downloadlinux-e3c361b8acd636f5fe80c02849ca175201edf10c.tar.xz
netfilter: nf_tables: fix nft_trans type confusion
nft_trans_FOO objects all share a common nft_trans base structure, but trailing fields depend on the real object size. Access is only safe after trans->msg_type check. Check for rule type first. Found by code inspection. Fixes: 1a94e38d254b ("netfilter: nf_tables: add NFTA_RULE_ID attribute") Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'net/dcb/dcbnl.c')
0 files changed, 0 insertions, 0 deletions