projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb692d
)
We can't xlat expand non-strings
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 17 Dec 2015 14:44:04 +0000
(09:44 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 17 Dec 2015 14:48:29 +0000
(09:48 -0500)
src/main/xlat.c
patch
|
blob
|
history
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
31410b0
..
b073884
100644
(file)
--- 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);
}