diff options
author | Phil Sutter <phil@nwl.cc> | 2020-01-20 16:32:40 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-01-22 09:01:01 +0100 |
commit | c9ddf0bff363fc9101b563b592db600bdf4d65c5 (patch) | |
tree | f996aef62b559c8e480593b2b48e5976f38fa793 /tests/py/inet/fib.t.payload | |
parent | e957bd9f10d5e36671a0b0398e2037fc6201275b (diff) |
netlink: Avoid potential NULL-pointer deref in netlink_gen_payload_stmt()
With payload_needs_l4csum_update_pseudohdr() unconditionally
dereferencing passed 'desc' parameter and a previous check for it to be
non-NULL, make sure to call the function only if input is sane.
Fixes: 68de70f2b3fc6 ("netlink_linearize: fix IPv6 layer 4 checksum mangling")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/fib.t.payload')
0 files changed, 0 insertions, 0 deletions