summaryrefslogtreecommitdiffstats
path: root/ip6tables-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r--ip6tables-save.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c
index 37b1f197..486c5224 100644
--- a/ip6tables-save.c
+++ b/ip6tables-save.c
@@ -125,7 +125,7 @@ static void print_ip(char *prefix, const struct in6_addr *ip, const struct in6_a
char buf[51];
int l = ipv6_prefix_length(mask);
- if (!mask && !ip)
+ if (l == 0 && !invert)
return;
printf("%s %s%s",