Merge pull request #10982 from julek-wolfssl/dtls-clear-tx-cursor-on-free

DTLS: clear dtls_tx_msg cursor when its record is freed
pull/10944/head
Sean Parkinson 2026-07-24 13:24:52 +10:00 committed by GitHub
commit f5ace71dd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -9926,8 +9926,11 @@ void DtlsTxMsgListClean(WOLFSSL* ssl)
WOLFSSL_ENTER("DtlsTxMsgListClean");
while (head) {
next = head->next;
if (VerifyForTxDtlsMsgDelete(ssl, head))
if (VerifyForTxDtlsMsgDelete(ssl, head)) {
if (ssl->dtls_tx_msg == head)
ssl->dtls_tx_msg = NULL;
DtlsMsgDelete(head, ssl->heap);
}
else
/* Stored packets should be in order so break on first failed
* verify */