mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-07 13:24:09 +02:00
Merge pull request #10982 from julek-wolfssl/dtls-clear-tx-cursor-on-free
DTLS: clear dtls_tx_msg cursor when its record is freed
This commit is contained in:
+4
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user