From 37f187b1b89a9f40688d9f3b209d6f4df5167c43 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 22 Feb 2023 17:30:20 +0100 Subject: 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 --- lib/ipset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.1