From: Arran Cudbard-Bell Date: Wed, 27 Oct 2021 17:00:57 +0000 (-0400) Subject: Use the cast type in fr_cond_promot_types X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4b0e7c464e356185506e982369fa2d2d6cb1ad;p=thirdparty%2Ffreeradius-server.git Use the cast type in fr_cond_promot_types --- diff --git a/src/lib/server/cond_tokenize.c b/src/lib/server/cond_tokenize.c index db3e0621682..c222b01e88f 100644 --- a/src/lib/server/cond_tokenize.c +++ b/src/lib/server/cond_tokenize.c @@ -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