summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <thomas.jarosch@intra2net.com>2012-12-27 15:12:30 +0100
committerFlorian Westphal <fw@strlen.de>2012-12-27 15:24:57 +0100
commit81a716ea82324ce18ddc348c01bd2f8377c860d5 (patch)
tree2d6227e2f288083544f781bac5184db1f693891c
parent525aa06da786f66709db4e1ec17bd635b8c5025a (diff)
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 <thomas.jarosch@intra2net.com> Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/conntrack/compare.c2
1 files changed, 1 insertions, 1 deletions
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;
}