diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-07 00:24:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-02-07 00:24:24 +0100 |
commit | 7ebfb5d36c0f4d64ad5260fc5f21333855c0c187 (patch) | |
tree | 8629d8c31af1b7e7f0ef9439ac89f0275d07c301 /src/expect/compare.c | |
parent | d9e5402accb761e47e72fab3bdd715d8b365bf73 (diff) |
expect: fix comparison of expectation class and flags
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expect/compare.c')
-rw-r--r-- | src/expect/compare.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expect/compare.c b/src/expect/compare.c index c1bb50f..a524f4c 100644 --- a/src/expect/compare.c +++ b/src/expect/compare.c @@ -30,17 +30,17 @@ static int exp_cmp(int attr, } static int -cmp_exp_flags(const struct nf_expect *exp1, const struct nf_expect *exp, +cmp_exp_flags(const struct nf_expect *exp1, const struct nf_expect *exp2, unsigned int flags) { - return (exp->flags == exp->flags); + return (exp1->flags == exp2->flags); } static int -cmp_exp_class(const struct nf_expect *exp1, const struct nf_expect *exp, +cmp_exp_class(const struct nf_expect *exp1, const struct nf_expect *exp2, unsigned int flags) { - return (exp->class == exp->class); + return (exp1->class == exp2->class); } int __cmp_expect(const struct nf_expect *exp1, |