diff options
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 3af81abd..9de34b51 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -140,9 +140,14 @@ int main(int argc, char *argv[]) program_version = IPTABLES_VERSION; xtables_program_name = program_name; - xtables_init(); - xtables_set_nfproto(NFPROTO_IPV6); ip6tables_globals.program_name = "ip6tables-save"; + c = xtables_init_all(&ip6tables_globals, NFPROTO_IPV6); + if (c < 0) { + fprintf(stderr, "%s/%s Failed to initialize xtables\n", + ip6tables_globals.program_name, + ip6tables_globals.program_version); + exit(1); + } #ifdef NO_SHARED_LIBS init_extensions(); #endif |