]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fixed destination netmask comparison bug in is_same()
authorMarc Boucher <marc@mbsi.ca>
Wed, 12 Jun 2002 19:22:29 +0000 (19:22 +0000)
committerMarc Boucher <marc@mbsi.ca>
Wed, 12 Jun 2002 19:22:29 +0000 (19:22 +0000)
libiptc/libip4tc.c

index d221e74c2bbaa1898d8f3e1bf7a527a292a5c487..e15df9024993bf1471738172bc4ab8215b2874d7 100644 (file)
@@ -194,7 +194,7 @@ is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b, unsigned char *matchmask)
        if (a->ip.src.s_addr != b->ip.src.s_addr
            || a->ip.dst.s_addr != b->ip.dst.s_addr
            || a->ip.smsk.s_addr != b->ip.smsk.s_addr
-           || a->ip.smsk.s_addr != b->ip.smsk.s_addr
+           || a->ip.dmsk.s_addr != b->ip.dmsk.s_addr
            || a->ip.proto != b->ip.proto
            || a->ip.flags != b->ip.flags
            || a->ip.invflags != b->ip.invflags)