From 3da36ed04d6e4ab8f88230cb938a0eeedbcc0e42 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Wed, 6 Dec 2023 15:29:35 +0100 Subject: [PATCH] fix: clear fragment buffer --- src/transport/raweth/tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transport/raweth/tx.c b/src/transport/raweth/tx.c index 62934af72..e48f7640b 100644 --- a/src/transport/raweth/tx.c +++ b/src/transport/raweth/tx.c @@ -278,6 +278,8 @@ int8_t _z_raweth_send_n_msg(_z_session_t *zn, const _z_network_message_t *n_msg, // Mark the session that we have transmitted data ztm->_transmitted = true; } + // Clear the expandable buffer + _z_wbuf_clear(&fbf); } #if Z_FEATURE_MULTI_THREAD == 1 _z_mutex_unlock(&ztm->_mutex_tx);