]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add assertion that nothing is left unresolved
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 18:55:29 +0000 (13:55 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jan 2021 18:55:29 +0000 (13:55 -0500)
src/lib/unlang/compile.c

index e3072e1c33b3d196b79057f8807be5e14037fa56..b898456ea2df76918ed11b42d331ebea5a1b9637 100644 (file)
@@ -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));
        }
 
        /*