Skip to content

Commit f4e79d7

Browse files
authored
Use the same encoding for binary data as strings
Closes #5285
1 parent 98f2f91 commit f4e79d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/print.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ size_t vp_prints_value_json(char *out, size_t outlen, VALUE_PAIR const *vp, bool
529529

530530
switch (vp->da->type) {
531531
case PW_TYPE_STRING:
532+
case PW_TYPE_OCTETS:
532533
for (q = vp->vp_strvalue; q < vp->vp_strvalue + vp->vp_length; q++) {
533534
/* Indicate truncation */
534535
if (freespace < 3) return outlen + 1;

0 commit comments

Comments
 (0)