diff options
author | Phil Sutter <phil@nwl.cc> | 2020-01-20 14:48:26 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-01-22 09:01:01 +0100 |
commit | e957bd9f10d5e36671a0b0398e2037fc6201275b (patch) | |
tree | 87c9edef1c3d3bc8e3474508265e0bead92bba23 /tests/shell/testcases/transactions | |
parent | c3f6be3f2dcedf6d79751c0b975315ebc3184364 (diff) |
netlink: Fix leaks in netlink_parse_cmp()
This fixes several problems at once:
* Err path would leak expr 'right' in two places and 'left' in one.
* Concat case would leak 'right' by overwriting the pointer. Introduce a
temporary variable to hold the new pointer.
Fixes: 6377380bc265f ("netlink_delinearize: handle relational and lookup concat expressions")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/transactions')
0 files changed, 0 insertions, 0 deletions