From: Nick Porter Date: Mon, 16 Feb 2026 11:05:26 +0000 (+0000) Subject: Pacify clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a15250df1cfc8ae31127602020cdc3e6b4dea2;p=thirdparty%2Ffreeradius-server.git Pacify clang scan --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 10074a10a34..0446bada51a 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -383,7 +383,7 @@ int unlang_fixup_update(map_t *map, void *ctx) * What exactly where you expecting to happen here? */ if (tmpl_attr_tail_da_is_leaf(map->lhs) && - tmpl_is_list(map->rhs)) { + map->rhs && tmpl_is_list(map->rhs)) { cf_log_err(map->ci, "Can't copy list into an attribute"); return -1; } @@ -406,6 +406,11 @@ int unlang_fixup_update(map_t *map, void *ctx) */ if (map->op == T_OP_CMP_FALSE) return 0; + if (unlikely(!map->rhs)) { + cf_log_err(map->ci, "Missing rhs"); + return -1; + } + if (!tmpl_is_data_unresolved(map->rhs)) return 0; /*