]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
More PPC alignment fixes.
authorRusty Russell <rusty@linuxcare.com.au>
Mon, 3 Jul 2000 10:24:04 +0000 (10:24 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 3 Jul 2000 10:24:04 +0000 (10:24 +0000)
libiptc/libiptc.c

index b16f000dd6a318d4b2c25c378ca77bedb05b22d6..4c842651398a402c42399b21bf946fc5d62f93d0 100644 (file)
@@ -1023,9 +1023,9 @@ match_different(const STRUCT_ENTRY_MATCH *a,
        if (strcmp(a->u.user.name, b->u.user.name) != 0)
                return 1;
 
-       *maskptr += sizeof(*a);
+       *maskptr += ALIGN(sizeof(*a));
 
-       for (i = 0; i < a->u.match_size - sizeof(*a); i++)
+       for (i = 0; i < a->u.match_size - ALIGN(sizeof(*a)); i++)
                if (((a->data[i] ^ b->data[i]) & (*maskptr)[i]) != 0)
                        return 1;
        *maskptr += i;