Check for =~ and !~
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 18:24:10 +0000 (13:24 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 18:24:10 +0000 (13:24 -0500)
Fixes Coverity #982075

src/modules/rlm_expr/paircmp.c

index 71aa855..8256f46 100644 (file)
@@ -219,7 +219,7 @@ static int genericcmp(void *instance UNUSED,
                      VALUE_PAIR **reply_pairs UNUSED)
 {
        if ((check->op != T_OP_REG_EQ) &&
-           (check->op != T_OP_REG_EQ)) {
+           (check->op != T_OP_REG_NE)) {
                int rcode;
                char name[1024];
                char value[1024];