diff options
author | Phil Sutter <phil@nwl.cc> | 2021-03-17 20:39:38 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-11-30 14:57:46 +0100 |
commit | 40e2414b74a1b8370decae5dea6395200dfb1e6d (patch) | |
tree | 4edc6883cd59f84ee7d24a8d65e4847a775481a5 /src/netlink_linearize.c | |
parent | 38f1546ff34ae93d15caf5d003951aeb184a0396 (diff) |
exthdr: Fix for segfault with unknown exthdr
Unknown exthdr type with NFT_EXTHDR_F_PRESENT flag set caused
NULL-pointer deref. Fix this by moving the conditional exthdr.desc deref
atop the function and use the result in all cases.
Fixes: e02bd59c4009b ("exthdr: Implement existence check")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/netlink_linearize.c')
0 files changed, 0 insertions, 0 deletions