summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-02-22 17:30:20 +0100
committerPhil Sutter <phil@nwl.cc>2023-03-10 13:16:51 +0100
commit37f187b1b89a9f40688d9f3b209d6f4df5167c43 (patch)
treefa6c11f1af19781cb74931c1352334212ef026b3 /lib
parente55645ac6411a0e0596ce5f206f1d57f1eaba45c (diff)
downloadipset-37f187b1b89a9f40688d9f3b209d6f4df5167c43.tar.gz
xlate: Fix for fd leak in error path
A rather cosmetic issue though, the program will terminate anyway. Fixes: 325af556cd3a6 ("add ipset to nftables translation infrastructure") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'lib')
-rw-r--r--lib/ipset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipset.c b/lib/ipset.c
index f57b074..2e098e4 100644
--- a/lib/ipset.c
+++ b/lib/ipset.c
@@ -1999,7 +1999,7 @@ static int ipset_xlate_restore(struct ipset *ipset)
ret = build_argv(ipset, c);
if (ret < 0)
- return ret;
+ break;
cmd = ipset_parser(ipset, ipset->newargc, ipset->newargv);
if (cmd < 0)