From: Alan T. DeKok Date: Tue, 19 Jan 2021 18:55:29 +0000 (-0500) Subject: add assertion that nothing is left unresolved X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8f7faa9dd7c8d6377274f7f04531e0aa2afd01;p=thirdparty%2Ffreeradius-server.git add assertion that nothing is left unresolved --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index e3072e1c33b..b898456ea2d 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -405,6 +405,8 @@ static bool pass2_fixup_cond_map(fr_cond_t *c, CONF_ITEM *ci) vpt = c->data.map->lhs; if (tmpl_is_attr(vpt) && tmpl_da(vpt)->flags.virtual) { if (tmpl_attr_to_xlat(c, &vpt) < 0) return false; + + fr_assert(!tmpl_is_xlat_unresolved(map->lhs)); } /*