]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
all tmpls have now been resolved
authorAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jan 2021 15:06:21 +0000 (10:06 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jan 2021 15:06:21 +0000 (10:06 -0500)
src/lib/server/cond_eval.c

index 52dfece896e5cadcee89a3659b417ed488b9cde9..67cb44a86e00ecda723464fd3771ad8ea89b9571 100644 (file)
@@ -621,13 +621,10 @@ int cond_eval_map(request_t *request, UNUSED int depth, fr_cond_t const *c)
 
 #ifndef NDEBUG
        /*
-        *      Regex LHS may have an unresolved tmpl, as it's just a
-        *      string.  Maybe we want to cast that to data?
+        *      At this point, all tmpls MUST have been resolved.
         */
-       if ((c->data.map->op != T_OP_REG_EQ) && (c->data.map->op != T_OP_REG_NE)) {
-               fr_assert(!tmpl_is_unresolved(c->data.map->lhs) || (c->data.map->lhs->cast != FR_TYPE_INVALID));
-               fr_assert(!tmpl_is_unresolved(c->data.map->rhs) || (c->data.map->rhs->cast != FR_TYPE_INVALID));
-       }
+       fr_assert(!tmpl_is_unresolved(c->data.map->lhs) || (c->data.map->lhs->cast != FR_TYPE_INVALID));
+       fr_assert(!tmpl_is_unresolved(c->data.map->rhs) || (c->data.map->rhs->cast != FR_TYPE_INVALID));
 #endif
 
        EVAL_DEBUG(">>> MAP TYPES LHS: %s, RHS: %s",