From 0bb4cac0b959c61a9efc08d1b9cf2b80215b55f5 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Mon, 6 Jan 2025 16:33:37 +0100 Subject: [PATCH] fix: misplaced raweth argument --- src/transport/raweth/tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/raweth/tx.c b/src/transport/raweth/tx.c index 1e61d6909..9116930c5 100644 --- a/src/transport/raweth/tx.c +++ b/src/transport/raweth/tx.c @@ -266,8 +266,8 @@ z_result_t _z_raweth_send_n_msg(_z_session_t *zn, const _z_network_message_t *n_ // Create an expandable wbuf for fragmentation _z_wbuf_t fbf = _z_wbuf_make(_Z_FRAG_BUFF_BASE_SIZE, true); // Encode the message on the expandable wbuf - _Z_CLEAN_RETURN_IF_ERR(_z_network_message_encode(&fbf, n_msg), _z_transport_tx_mutex_unlock(&ztm->_common), - NULL); + _Z_CLEAN_RETURN_IF_ERR(_z_network_message_encode(&fbf, n_msg, NULL), + _z_transport_tx_mutex_unlock(&ztm->_common)); // Fragment and send the message bool is_first = true; while (_z_wbuf_len(&fbf) > 0) {