diff options
author | laforge <laforge> | 2003-10-02 19:59:27 +0000 |
---|---|---|
committer | laforge <laforge> | 2003-10-02 19:59:27 +0000 |
commit | efe62aefe1a785ecaefa2a3628b1298680013471 (patch) | |
tree | 927a6708dffe3d2f4f807ba97984bb149e1695a8 | |
parent | ad20a9fca06f8cbf5c480ef0ba949af0c2068111 (diff) |
fix saving of udp port range in ip6tables (Thomas Woerner)
-rw-r--r-- | extensions/libip6t_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_udp.c b/extensions/libip6t_udp.c index a2e2fe6..139386c 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] |