Skip to content

Commit

Permalink
Should still pass ctx to fr_value_box_bstrndup
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 3, 2023
1 parent d01ce18 commit b4c2609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,7 @@ static inline int fr_value_box_cast_to_strvalue(TALLOC_CTX *ctx, fr_value_box_t
* What we actually want here is the raw string
*/
case FR_TYPE_OCTETS:
return fr_value_box_bstrndup(dst, dst, dst_enumv,
return fr_value_box_bstrndup(ctx, dst, dst_enumv,
(char const *)src->vb_octets, src->vb_length, src->tainted);

case FR_TYPE_GROUP:
Expand Down

0 comments on commit b4c2609

Please sign in to comment.