From: Thomas Woerner Date: Thu, 2 Oct 2003 19:59:27 +0000 (+0000) Subject: fix saving of udp port range in ip6tables (Thomas Woerner) X-Git-Tag: v1.2.9-rc1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fb4d1f3143eb1235aacc424b29e296948a78034;p=thirdparty%2Fiptables.git fix saving of udp port range in ip6tables (Thomas Woerner) --- diff --git a/extensions/libip6t_udp.c b/extensions/libip6t_udp.c index a2e2fe64..139386cd 100644 --- a/extensions/libip6t_udp.c +++ b/extensions/libip6t_udp.c @@ -205,7 +205,7 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match const struct ip6t_udp *udpinfo = (struct ip6t_udp *)match->data; if (udpinfo->spts[0] != 0 - && udpinfo->spts[1] != 0xFFFF) { + || udpinfo->spts[1] != 0xFFFF) { if (udpinfo->invflags & IP6T_UDP_INV_SRCPT) printf("! "); if (udpinfo->spts[0] @@ -219,7 +219,7 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match } if (udpinfo->dpts[0] != 0 - && udpinfo->dpts[1] != 0xFFFF) { + || udpinfo->dpts[1] != 0xFFFF) { if (udpinfo->invflags & IP6T_UDP_INV_DSTPT) printf("! "); if (udpinfo->dpts[0]