mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #10982 from julek-wolfssl/dtls-clear-tx-cursor-on-free
DTLS: clear dtls_tx_msg cursor when its record is freedpull/10944/head
commit
f5ace71dd3
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue