]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ip6tables-restore should output error of modprobe if failed to load
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 20 Mar 2007 16:50:21 +0000 (16:50 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 20 Mar 2007 16:50:21 +0000 (16:50 +0000)
ip6tables.ko after failed to initialize handle.

ip6tables-restore.c

index 4f5ead1deba6203776124012099d7342abae30e8..df2e7d5564ea9fa5eba37250ca1205175aebffe6 100644 (file)
@@ -62,7 +62,7 @@ ip6tc_handle_t create_handle(const char *tablename, const char* modprobe)
 
        if (!handle) {
                /* try to insmod the module if iptc_init failed */
-               ip6tables_insmod("ip6_tables", modprobe, 1);
+               ip6tables_insmod("ip6_tables", modprobe, 0);
                handle = ip6tc_init(tablename);
        }