Allow !=, too
authoraland <aland>
Fri, 11 Feb 2005 01:02:20 +0000 (01:02 +0000)
committeraland <aland>
Fri, 11 Feb 2005 01:02:20 +0000 (01:02 +0000)
src/modules/rlm_policy/parse.c

index 54366e3..1c97a5b 100644 (file)
@@ -245,6 +245,11 @@ static const char *policy_lex_string(const char *input,
                
        case '!':
                switch (input[1]) {
+               case '=':
+                       input++;
+                       *token = POLICY_LEX_CMP_NOT_EQUALS;
+                       break;
+
                case '~':
                        input++;
                        *token = POLICY_LEX_RX_NOT_EQUALS;