From d4409d449c10faa3917a9c9624ba90ac881f89d1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 6 May 2020 14:39:52 +0200 Subject: nft: Don't exit early after printing help texts Follow regular code path after handling --help option to gracefully deinit and free stuff. Signed-off-by: Phil Sutter --- iptables/xtables-eb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-eb.c') diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 5764d180..375a95d1 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -1218,7 +1218,7 @@ print_zero: if (command == 'h' && !(flags & OPT_ZERO)) { print_help(cs.target, cs.matches, *table); - exit(0); + ret = 1; } /* Do the final checks */ -- cgit v1.2.3