From: Alan T. DeKok Date: Thu, 17 Dec 2015 14:44:04 +0000 (-0500) Subject: We can't xlat expand non-strings X-Git-Tag: release_3_0_11~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e44f383287bbab6bab5346c3ad07c72bf329dc5;p=thirdparty%2Ffreeradius-server.git We can't xlat expand non-strings --- diff --git a/src/main/xlat.c b/src/main/xlat.c index 31410b06b2a..b07388485ec 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -657,6 +657,8 @@ static ssize_t xlat_xlat(UNUSED void *instance, REQUEST *request, if ((radius_get_vp(&vp, request, fmt) < 0) || !vp) goto nothing; + if (vp->da->type != PW_TYPE_STRING) goto nothing; + return radius_xlat(out, outlen, request, vp->vp_strvalue, NULL, NULL); }