projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ab4fe
)
Print xlat types, too. Fixes #1574
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 1 Apr 2016 15:42:31 +0000
(11:42 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 1 Apr 2016 15:42:31 +0000
(11:42 -0400)
src/lib/print.c
patch
|
blob
|
history
diff --git
a/src/lib/print.c
b/src/lib/print.c
index
0d11ef7
..
5ce0928
100644
(file)
--- a/
src/lib/print.c
+++ b/
src/lib/print.c
@@
-436,6
+436,10
@@
char *vp_aprints_value(TALLOC_CTX *ctx, VALUE_PAIR const *vp, char quote)
{
VERIFY_VP(vp);
+ if (vp->type == VT_XLAT) {
+ return fr_aprints(ctx, vp->value.xlat, talloc_array_length(vp->value.xlat) - 1, quote);
+ }
+
return value_data_aprints(ctx, vp->da->type, vp->da, &vp->data, vp->vp_length, quote);
}