From: Arran Cudbard-Bell Date: Thu, 30 Oct 2014 22:30:53 +0000 (-0400) Subject: Print booleans X-Git-Tag: branch_3_1_x~4812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb835c4e6752a4e306329de71bf6bc321657e1f;p=thirdparty%2Ffreeradius-server.git Print booleans --- diff --git a/src/lib/print.c b/src/lib/print.c index 68c92da8fab..cc4403a23b6 100644 --- 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;