]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Not committed yet
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 25 Oct 2021 18:25:10 +0000 (14:25 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 25 Oct 2021 18:25:10 +0000 (14:25 -0400)
src/lib/unlang/compile.c

index ef35afd051215efb06116014059036babcad719f..42c918a5323241d383964a443303ee1b35efc8d2 100644 (file)
@@ -497,8 +497,7 @@ static bool pass2_fixup_cond_map(fr_cond_t *c, CONF_ITEM *ci, fr_dict_t const *d
        /*
         *      Force the RHS to be cast to whatever the LHS da is.
         */
-       if ((tmpl_cast_set(map->rhs, tmpl_da(map->lhs)->type) < 0) ||
-           (tmpl_enumv_set(map->rhs, tmpl_da(map->rhs)) < 0)) {
+       if (tmpl_cast_set(map->rhs, tmpl_da(map->lhs)->type) < 0) {
                cf_log_perr(map->ci, "Failed setting rhs type");
        };