Fix condition for attribute not found
[freeradius.git] / src / main / evaluate.c
index 5da6645..77df822 100644 (file)
@@ -366,7 +366,8 @@ static int radius_do_cmp(REQUEST *request, int *presult,
                                
                                RDEBUG2("    (Attribute %s was not found)",
                                       pleft);
-                               return FALSE;
+                               *presult = 0;
+                               return TRUE;
                        }
 
 #ifdef HAVE_REGEX_H