diff options
author | Phil Sutter <phil@nwl.cc> | 2020-05-06 14:39:52 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-05-11 14:28:29 +0200 |
commit | d4409d449c10faa3917a9c9624ba90ac881f89d1 (patch) | |
tree | f53522e1e008a65466a04307378c771d0f527088 /iptables/xtables-eb.c | |
parent | b199aca80da5741add50cce244492cc005230b66 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |