We can't xlat expand non-strings
authorAlan T. DeKok <aland@freeradius.org>
Thu, 17 Dec 2015 14:44:04 +0000 (09:44 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Dec 2015 14:48:29 +0000 (09:48 -0500)
src/main/xlat.c

index 31410b0..b073884 100644 (file)
@@ -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);
 }