* Rusty Russell <rusty@linuxcare.com.au>
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: ip6tables-restore.c,v 1.21 2004/02/02 20:14:56 gandalf Exp $
+ * $Id: ip6tables-restore.c,v 1.22 2004/05/26 16:04:48 gandalf Exp $
*/
#include <getopt.h>
exit(1);
}
- if (!ip6tc_builtin(chain, handle)) {
+ if (ip6tc_builtin(chain, handle) <= 0) {
DEBUGP("Creating new chain '%s'\n", chain);
if (!ip6tc_create_chain(chain, &handle))
exit_error(PARAMETER_PROBLEM,
for (i = 0; i < chaincount; i++) {
if (!builtinstoo
&& ip6tc_builtin(chains + i*sizeof(ip6t_chainlabel),
- *handle))
+ *handle) == 1)
continue;
ret &= fn(chains + i*sizeof(ip6t_chainlabel), verbose, handle);
}