diff options
author | laforge <laforge> | 2004-08-30 16:00:09 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-08-30 16:00:09 +0000 |
commit | 96832e27f3c106c65331989941e9c553b7215267 (patch) | |
tree | 87567f60afa7e1df8b20f6ed3df7651224aa527f /iptables-restore.c | |
parent | ae93d3941c8667f36ce378354bd3d2a0a0128344 (diff) |
fix slightly changed semantics of iptc_is_builtin
Diffstat (limited to 'iptables-restore.c')
-rw-r--r-- | iptables-restore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c index c0ab99e..284f25c 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -4,7 +4,7 @@ * * This code is distributed under the terms of GNU GPL v2 * - * $Id: iptables-restore.c,v 1.34 2004/05/26 16:04:48 gandalf Exp $ + * $Id: iptables-restore.c,v 1.35 2004/06/25 11:18:57 kadlec Exp $ */ #include <getopt.h> @@ -231,7 +231,7 @@ main(int argc, char *argv[]) exit(1); } - if (!iptc_builtin(chain, handle)) { + if (iptc_builtin(chain, handle) <= 0) { DEBUGP("Creating new chain '%s'\n", chain); if (!iptc_create_chain(chain, &handle)) exit_error(PARAMETER_PROBLEM, |