projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32dfad5
)
Print booleans
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Thu, 30 Oct 2014 22:30:53 +0000
(18:30 -0400)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Thu, 30 Oct 2014 22:31:57 +0000
(18:31 -0400)
src/lib/print.c
patch
|
blob
|
history
diff --git
a/src/lib/print.c
b/src/lib/print.c
index
68c92da
..
cc4403a
100644
(file)
--- a/
src/lib/print.c
+++ b/
src/lib/print.c
@@
-695,6
+695,10
@@
char *vp_data_aprints_value(TALLOC_CTX *ctx,
(data->ifid[6] << 8) | data->ifid[7]);
break;
+ case PW_TYPE_BOOLEAN:
+ p = talloc_typed_strdup(ctx, data->byte ? "yes" : "no");
+ break;
+
/*
* Don't add default here
*/
@@
-707,7
+711,6
@@
char *vp_data_aprints_value(TALLOC_CTX *ctx,
case PW_TYPE_EVS:
case PW_TYPE_VSA:
case PW_TYPE_TIMEVAL:
- case PW_TYPE_BOOLEAN:
case PW_TYPE_MAX:
fr_assert(0);
return NULL;