From 81a716ea82324ce18ddc348c01bd2f8377c860d5 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 27 Dec 2012 15:12:30 +0100 Subject: Fix logic typo in cmp_secctx cppcheck reported: [src/conntrack/compare.c:364] -> [src/conntrack/compare.c:364]: (style) Same expression on both sides of '||'. Signed-off-by: Thomas Jarosch Signed-off-by: Florian Westphal --- src/conntrack/compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack/compare.c') diff --git a/src/conntrack/compare.c b/src/conntrack/compare.c index b18f7fc..e282a24 100644 --- a/src/conntrack/compare.c +++ b/src/conntrack/compare.c @@ -361,7 +361,7 @@ cmp_secctx(const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags) { - if (ct1->secctx == NULL || ct1->secctx == NULL) + if (ct1->secctx == NULL || ct2->secctx == NULL) return ct1->secctx == ct2->secctx; return strcmp(ct1->secctx, ct2->secctx) == 0; } -- cgit v1.2.3