From: Alan T. DeKok Date: Thu, 28 Aug 2014 19:05:52 +0000 (-0400) Subject: We might have a cast, too X-Git-Tag: release_3_0_5~689 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c815fd246bd07311da8b680e5280c3486321aff;p=thirdparty%2Ffreeradius-server.git We might have a cast, too --- diff --git a/src/main/modcall.c b/src/main/modcall.c index 93584df4a50..c4ffe9cf042 100644 --- a/src/main/modcall.c +++ b/src/main/modcall.c @@ -3050,7 +3050,11 @@ check_paircmp: * forbids this. */ if (map->dst->type == TMPL_TYPE_ATTR) { - if (!pass2_xlat_compile(map->ci, &map->src, true, map->dst->attribute.da)) { + DICT_ATTR const *da = c->cast; + + if (!c->cast) da = map->dst->attribute.da; + + if (!pass2_xlat_compile(map->ci, &map->src, true, da)) { return false; }