]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Hack for !*
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Dec 2010 13:38:51 +0000 (14:38 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Dec 2010 13:38:51 +0000 (14:38 +0100)
src/main/conffile.c

index a486ef8da39a1c2840188281d11f57cee8be84fc..a6b5f5093195e3d74194808a84eb7e2492bc4d6c 100644 (file)
@@ -1877,6 +1877,11 @@ VALUE_PAIR *cf_pairtovp(CONF_PAIR *pair)
                return NULL;
        }
 
+       /*
+        *      Ignore the value if it's a false comparison.
+        */
+       if (pair->operator == T_OP_CMP_FALSE) return vp;
+
        if (pair->value_type == T_BARE_WORD) {
                if ((vp->type == PW_TYPE_STRING) && 
                    (pair->value[0] == '0') && (pair->value[1] == 'x')) {