diff options
author | Phil Sutter <phil@nwl.cc> | 2022-11-16 13:03:05 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-11-24 10:24:06 +0100 |
commit | 8543b6f2f4a3a15a5ece7dd1b320b477ce36a8d5 (patch) | |
tree | 7179f2299297f0d4ac6ba677312c91ff7627017e /extensions | |
parent | bc5f9d05dbf7d0a6c5256c63c492273c93ad3434 (diff) |
extensions: libebt_redirect: Fix xlate return code
The callback is supposed to return 1 on success, not 0.
Fixes: 24ce7465056ae ("ebtables-compat: add redirect match extension")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libebt_redirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libebt_redirect.c b/extensions/libebt_redirect.c index 6e653997..4d4c7a02 100644 --- a/extensions/libebt_redirect.c +++ b/extensions/libebt_redirect.c @@ -86,7 +86,7 @@ static int brredir_xlate(struct xt_xlate *xl, xt_xlate_add(xl, "meta set pkttype host"); if (red->target != EBT_ACCEPT) xt_xlate_add(xl, " %s ", brredir_verdict(red->target)); - return 0; + return 1; } static struct xtables_target brredirect_target = { |