From 7ebfb5d36c0f4d64ad5260fc5f21333855c0c187 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 7 Feb 2012 00:24:24 +0100 Subject: expect: fix comparison of expectation class and flags Signed-off-by: Pablo Neira Ayuso --- src/expect/compare.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/expect') 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, -- cgit v1.2.3