Skip to content

Commit

Permalink
unalias keyexpr when using take_from_loaned on reply
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Feb 26, 2025
1 parent dc541d3 commit 56beabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ z_result_t _z_reply_data_copy(_z_reply_data_t *dst, const _z_reply_data_t *src)

void _z_reply_move(_z_reply_t *dst, _z_reply_t *src) {
*dst = *src;
if (dst->data._tag == _Z_REPLY_TAG_DATA) {
_z_keyexpr_to_non_aliased(&dst->data._result.sample.keyexpr);
}
*src = _z_reply_null();
}

Expand Down

0 comments on commit 56beabf

Please sign in to comment.