summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_tcp.c')
-rw-r--r--extensions/libipt_tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_tcp.c b/extensions/libipt_tcp.c
index 276d0e2..47336f6 100644
--- a/extensions/libipt_tcp.c
+++ b/extensions/libipt_tcp.c
@@ -374,7 +374,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
const struct ipt_tcp *tcpinfo = (struct ipt_tcp *)match->data;
if (tcpinfo->spts[0] != 0
- && tcpinfo->spts[1] != 0xFFFF) {
+ || tcpinfo->spts[1] != 0xFFFF) {
if (tcpinfo->invflags & IPT_TCP_INV_SRCPT)
printf("! ");
if (tcpinfo->spts[0]
@@ -388,7 +388,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
}
if (tcpinfo->dpts[0] != 0
- && tcpinfo->dpts[1] != 0xFFFF) {
+ || tcpinfo->dpts[1] != 0xFFFF) {
if (tcpinfo->invflags & IPT_TCP_INV_DSTPT)
printf("! ");
if (tcpinfo->dpts[0]
@@ -425,8 +425,8 @@ struct iptables_match tcp
= { NULL,
"tcp",
NETFILTER_VERSION,
- sizeof(struct ipt_tcp),
- sizeof(struct ipt_tcp),
+ IPT_ALIGN(sizeof(struct ipt_tcp)),
+ IPT_ALIGN(sizeof(struct ipt_tcp)),
&help,
&init,
&parse,