]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
suppress spurious messages
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 14:09:43 +0000 (09:09 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 14:09:43 +0000 (09:09 -0500)
src/lib/unlang/compile.c

index 90f20edfba92846ff3fa12506df328b657c97af0..6bd568fe9972b350c3a6e261edd2380b9aeb5b73 100644 (file)
@@ -887,7 +887,7 @@ int unlang_fixup_update(map_t *map, UNUSED void *ctx)
         *
         *      We then free the template and alloc a NULL one instead.
         */
-       if (map->op == T_OP_CMP_FALSE) {
+       if ((map->op == T_OP_CMP_FALSE) && !tmpl_is_null(map->rhs)) {
                if (!tmpl_is_unresolved(map->rhs) || (strcmp(map->rhs->name, "ANY") != 0)) {
                        WARN("%s[%d] Wildcard deletion MUST use '!* ANY'",
                             cf_filename(cp), cf_lineno(cp));
@@ -922,7 +922,7 @@ int unlang_fixup_update(map_t *map, UNUSED void *ctx)
                        return -1;
                }
 
-               if (fr_equality_op[map->op]) {
+               if (fr_equality_op[map->op] && (map->op != T_OP_CMP_FALSE)) {
                        cf_log_warn(cp, "Please use the 'filter' keyword for attribute filtering");
                }
        }