summaryrefslogtreecommitdiffstats
path: root/iptables/ip6tables-standalone.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-06-02 11:55:20 +0200
committerPhil Sutter <phil@nwl.cc>2021-06-07 14:50:27 +0200
commiteab75ed36a4f204ddab0c40ba42c5a300634d5c3 (patch)
tree33beaba88517be6c18f5d86fb6ec84ed12f9bb65 /iptables/ip6tables-standalone.c
parentffe88f8f01263687e82ef4d3d2bdc0cb5444711e (diff)
nft: Avoid memleak in error path of nft_cmd_new()
If rule allocation fails, free the allocated 'cmd' before returning to caller. Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/ip6tables-standalone.c')
0 files changed, 0 insertions, 0 deletions