From: Alan T. DeKok Date: Sun, 5 Dec 2021 14:09:43 +0000 (-0500) Subject: suppress spurious messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d523a183adb2f0a0ddf4ede54d3b3f68fcae495;p=thirdparty%2Ffreeradius-server.git suppress spurious messages --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 90f20edfba9..6bd568fe997 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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"); } }