]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
SET target bugfix by Michal Pokrywka applied
authorMichal Pokrywka <mpokrywka@hoga.pl>
Fri, 18 Mar 2005 08:05:10 +0000 (08:05 +0000)
committerJoszef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 18 Mar 2005 08:05:10 +0000 (08:05 +0000)
extensions/libipt_SET.c

index 91d1a47adecd269ff981de989901403cb679877e..d11a9f032b276641082d89f88f87d7f93c4b1405 100644 (file)
@@ -120,7 +120,9 @@ print_target(const char *prefix, const struct ipt_set_info *info)
 {
        int i;
        char setname[IP_SET_MAXNAMELEN];
-       
+
+       if (info->index == IP_SET_INVALID_ID)
+               return;
        get_set_byid(setname, info->index);
        printf("%s %s", prefix, setname);
        for (i = 0; i < IP_SET_MAX_BINDINGS; i++) {