]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use the cast type in fr_cond_promot_types
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Oct 2021 17:00:57 +0000 (13:00 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 27 Oct 2021 17:17:16 +0000 (13:17 -0400)
src/lib/server/cond_tokenize.c

index db3e0621682e9fb4a3d494406e5f6c87f8d3fa42..c222b01e88f8501943653de1cad738a8b787b8d1 100644 (file)
@@ -270,7 +270,7 @@ int fr_cond_promote_types(fr_cond_t *c, fr_sbuff_t *in, fr_sbuff_marker_t *m_lhs
                 *      Force a cast to 'string', so the conditional
                 *      evaluator has less work to do.
                 */
-               (void) tmpl_cast_set(c->data.map->lhs, FR_TYPE_STRING);
+               (void) tmpl_cast_set(c->data.map->lhs, cast_type);
                return 0;
        }
 #endif