summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_udp.c')
-rw-r--r--extensions/libipt_udp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_udp.c b/extensions/libipt_udp.c
index 507937b..06c61c5 100644
--- a/extensions/libipt_udp.c
+++ b/extensions/libipt_udp.c
@@ -203,7 +203,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
const struct ipt_udp *udpinfo = (struct ipt_udp *)match->data;
if (udpinfo->spts[0] != 0
- && udpinfo->spts[1] != 0xFFFF) {
+ || udpinfo->spts[1] != 0xFFFF) {
if (udpinfo->invflags & IPT_UDP_INV_SRCPT)
printf("! ");
if (udpinfo->spts[0]
@@ -217,7 +217,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
}
if (udpinfo->dpts[0] != 0
- && udpinfo->dpts[1] != 0xFFFF) {
+ || udpinfo->dpts[1] != 0xFFFF) {
if (udpinfo->invflags & IPT_UDP_INV_DSTPT)
printf("! ");
if (udpinfo->dpts[0]
@@ -235,8 +235,8 @@ struct iptables_match udp
= { NULL,
"udp",
NETFILTER_VERSION,
- sizeof(struct ipt_udp),
- sizeof(struct ipt_udp),
+ IPT_ALIGN(sizeof(struct ipt_udp)),
+ IPT_ALIGN(sizeof(struct ipt_udp)),
&help,
&init,
&parse,