Commit e3c361b
Florian Westphal
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: 1a94e38 ("netfilter: nf_tables: add NFTA_RULE_ID attribute")
Signed-off-by: Florian Westphal <[email protected]>1 parent 224a876 commit e3c361b
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3865 | 3865 | | |
3866 | 3866 | | |
3867 | 3867 | | |
3868 | | - | |
3869 | | - | |
3870 | 3868 | | |
3871 | 3869 | | |
3872 | 3870 | | |
3873 | | - | |
| 3871 | + | |
3874 | 3872 | | |
3875 | 3873 | | |
3876 | 3874 | | |
| |||
0 commit comments