diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=rusty/emailAddress=rusty@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=rusty/emailAddress=rusty@netfilter.org> | 2004-12-29 11:14:52 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=rusty/emailAddress=rusty@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=rusty/emailAddress=rusty@netfilter.org> | 2004-12-29 11:14:52 +0000 |
commit | 902235cc342f6ebbc83e904894157daa6deededb (patch) | |
tree | ef79136e70c7075b9158bae0b0d5872ef1f7d2c9 /libiptc | |
parent | 599d562ff01420793e46ad0b4d5f7a49194f73fc (diff) |
Stupid typo that meant we didn't compare target data when doing delete-by-matching-rule (found by nfsim test).
Diffstat (limited to 'libiptc')
-rw-r--r-- | libiptc/libiptc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index dfa2d1f..22b80a6 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1446,7 +1446,7 @@ target_same(struct rule_head *a, struct rule_head *b,const unsigned char *mask) return 0; for (i = 0; i < ta->u.target_size - sizeof(*ta); i++) - if (((ta->data[i] ^ ta->data[i]) & mask[i]) != 0) + if (((ta->data[i] ^ tb->data[i]) & mask[i]) != 0) return 0; return 1; default: |