Skip to content

Commit 37d2334

Browse files
committed
Fix f-2355 rx/tx buf force zero
1 parent 273e707 commit 37d2334

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mqtt_broker.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,11 @@ static void BrokerClient_Free(BrokerClient* bc)
12411241
}
12421242
#endif
12431243
if (bc->tx_buf) {
1244+
BROKER_FORCE_ZERO(bc->tx_buf, bc->tx_buf_len);
12441245
WOLFMQTT_FREE(bc->tx_buf);
12451246
}
12461247
if (bc->rx_buf) {
1248+
BROKER_FORCE_ZERO(bc->rx_buf, bc->rx_buf_len);
12471249
WOLFMQTT_FREE(bc->rx_buf);
12481250
}
12491251
WOLFMQTT_FREE(bc);

0 commit comments

Comments
 (0)