diff options
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 37b1f19..486c522 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", |