mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-11 06:21:19 +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");
|
WOLFSSL_ENTER("DtlsTxMsgListClean");
|
||||||
while (head) {
|
while (head) {
|
||||||
next = head->next;
|
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);
|
DtlsMsgDelete(head, ssl->heap);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
/* Stored packets should be in order so break on first failed
|
/* Stored packets should be in order so break on first failed
|
||||||
* verify */
|
* verify */
|
||||||
|
|||||||
Reference in New Issue
Block a user