]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
fix saving of udp port range in ip6tables (Thomas Woerner)
authorThomas Woerner <twoerner@redhat.com>
Thu, 2 Oct 2003 19:59:27 +0000 (19:59 +0000)
committerHarald Welte <laforge@gnumonks.org>
Thu, 2 Oct 2003 19:59:27 +0000 (19:59 +0000)
extensions/libip6t_udp.c

index a2e2fe640ce192557fd162a83fd6db5e43fd7226..139386cd0102a3e7c2838aeb31442bb3cf18a822 100644 (file)
@@ -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]