Skip to content

Commit e73ce42

Browse files
committed
fix: add _patch field in copy functions
1 parent 733a23d commit e73ce42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/protocol/definitions/transport.c

+5
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ void _z_t_msg_copy_join(_z_t_msg_join_t *clone, _z_t_msg_join_t *msg) {
313313
clone->_req_id_res = msg->_req_id_res;
314314
clone->_batch_size = msg->_batch_size;
315315
clone->_next_sn = msg->_next_sn;
316+
#if Z_FEATURE_FRAGMENTATION == 1
316317
clone->_patch = msg->_patch;
318+
#endif
317319
memcpy(clone->_zid.id, msg->_zid.id, 16);
318320
}
319321

@@ -325,6 +327,9 @@ void _z_t_msg_copy_init(_z_t_msg_init_t *clone, _z_t_msg_init_t *msg) {
325327
clone->_batch_size = msg->_batch_size;
326328
memcpy(clone->_zid.id, msg->_zid.id, 16);
327329
_z_slice_copy(&clone->_cookie, &msg->_cookie);
330+
#if Z_FEATURE_FRAGMENTATION == 1
331+
clone->_patch = msg->_patch;
332+
#endif
328333
}
329334

330335
void _z_t_msg_copy_open(_z_t_msg_open_t *clone, _z_t_msg_open_t *msg) {

0 commit comments

Comments
 (0)