summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_SET.c
diff options
context:
space:
mode:
authorMichal Pokrywka <mpokrywka@hoga.pl>2005-03-18 08:05:10 +0000
committerJoszef Kadlecsik <kadlec@blackhole.kfki.hu>2005-03-18 08:05:10 +0000
commitb9e814c4f3162a3f4deb93c42481fb1e4ca4f42e (patch)
treed7ecabcea536c7296b41b0807e22a367189983d1 /extensions/libipt_SET.c
parent1afcffdeba6ebfd383a846d18d01b2fb4c072a59 (diff)
SET target bugfix by Michal Pokrywka applied
Diffstat (limited to 'extensions/libipt_SET.c')
-rw-r--r--extensions/libipt_SET.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libipt_SET.c b/extensions/libipt_SET.c
index 91d1a47a..d11a9f03 100644
--- a/extensions/libipt_SET.c
+++ b/extensions/libipt_SET.c
@@ -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++) {