Skip to content

Commit

Permalink
Use the same encoding for binary data as strings
Browse files Browse the repository at this point in the history
Closes #5285
  • Loading branch information
arr2036 authored Jan 26, 2024
1 parent 98f2f91 commit f4e79d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ size_t vp_prints_value_json(char *out, size_t outlen, VALUE_PAIR const *vp, bool

switch (vp->da->type) {
case PW_TYPE_STRING:
case PW_TYPE_OCTETS:
for (q = vp->vp_strvalue; q < vp->vp_strvalue + vp->vp_length; q++) {
/* Indicate truncation */
if (freespace < 3) return outlen + 1;
Expand Down

0 comments on commit f4e79d7

Please sign in to comment.