]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't over-write a fail code with a success code.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2011 07:44:26 +0000 (09:44 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2011 07:44:26 +0000 (09:44 +0200)
Closes bug #152

src/main/valuepair.c

index f8feb4008bea8f8c0f0f1273109f2465953b83df..601d2128ddd7c8ebca498bdad239c99c6937f2c0 100644 (file)
@@ -521,7 +521,7 @@ int paircompare(REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check, VALUE_PAIR
 #ifdef HAVE_REGEX_H
                        case T_OP_REG_EQ:
                        case T_OP_REG_NE:
-                               result = compare;
+                               if (compare != 0) result = -1;
                                break;
 #endif
                } /* switch over the operator of the check item */