File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -837,6 +837,11 @@ static void Dtls13RtxRemoveCurAck(WOLFSSL* ssl)
837837{
838838 Dtls13RecordNumber * rn , * * prevNext ;
839839
840+ #ifdef WOLFSSL_RW_THREADED
841+ if (wc_LockMutex (& ssl -> dtls13Rtx .mutex ) != 0 )
842+ return ;
843+ #endif
844+
840845 prevNext = & ssl -> dtls13Rtx .seenRecords ;
841846 rn = ssl -> dtls13Rtx .seenRecords ;
842847
@@ -845,12 +850,19 @@ static void Dtls13RtxRemoveCurAck(WOLFSSL* ssl)
845850 w64Equal (rn -> seq , ssl -> keys .curSeq )) {
846851 * prevNext = rn -> next ;
847852 XFREE (rn , ssl -> heap , DYNAMIC_TYPE_DTLS_MSG );
853+ #ifdef WOLFSSL_RW_THREADED
854+ wc_UnLockMutex (& ssl -> dtls13Rtx .mutex );
855+ #endif
848856 return ;
849857 }
850858
851859 prevNext = & rn -> next ;
852860 rn = rn -> next ;
853861 }
862+
863+ #ifdef WOLFSSL_RW_THREADED
864+ wc_UnLockMutex (& ssl -> dtls13Rtx .mutex );
865+ #endif
854866}
855867
856868static void Dtls13MaybeSaveClientHello (WOLFSSL * ssl )
You can’t perform that action at this time.
0 commit comments