]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-save: fix hashlimit output
authorPhil Oester <kernel@linuxace.com>
Mon, 4 Aug 2008 11:28:07 +0000 (13:28 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Aug 2008 11:28:07 +0000 (13:28 +0200)
In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval
argument is saved incorrectly.  Patch below corrects.

Patch-from: Xeb <xeb@mail.ru>
Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_hashlimit.c

index 1f34fb98184965cde16aba2d12ca7731b4d1cbcf..da9b05f1a4eada86464b3ad1f54f663acf1bead9 100644 (file)
@@ -614,7 +614,7 @@ static void hashlimit_save(const void *ip, const struct xt_entry_match *match)
        if (r->cfg.max)
                printf("--hashlimit-htable-max %u ", r->cfg.max);
        if (r->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
-               printf("--hashlimit-htable-gcinterval %u", r->cfg.gc_interval);
+               printf("--hashlimit-htable-gcinterval %u ", r->cfg.gc_interval);
        if (r->cfg.expire != XT_HASHLIMIT_EXPIRE)
                printf("--hashlimit-htable-expire %u ", r->cfg.expire);
 }