mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Correctly insert out of order msgs to queue
This commit is contained in:
@ -7222,8 +7222,8 @@ DtlsMsg* DtlsMsgInsert(DtlsMsg* head, DtlsMsg* item)
|
||||
DtlsMsg* cur = head->next;
|
||||
DtlsMsg* prev = head;
|
||||
while (cur) {
|
||||
if (item->epoch <= head->epoch &&
|
||||
item->seq < head->seq) {
|
||||
if (item->epoch <= cur->epoch &&
|
||||
item->seq < cur->seq) {
|
||||
item->next = cur;
|
||||
prev->next = item;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user