1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-19 01:33:18 +00:00

Fixed RCTPRCVDEBUG in ILibSCTP_AddPacketToHoldingQueue.

This commit is contained in:
Ylian Saint-Hilaire
2021-07-11 11:42:24 -07:00
parent 51646002cd
commit 5618516cb9
2 changed files with 7 additions and 5 deletions

View File

@@ -4083,9 +4083,9 @@ void* ILibSCTP_AddPacketToHoldingQueue(struct ILibStun_dTlsSession* o, ILibSCTP_
{
void* retVal = NULL;
// Out of sequence packet, find a spot in the receive queue.
RCTPRCVDEBUG(printf("STORING %u, size = %d\r\n", tsn, chunksize);)
if (ReceiveHoldBuffer_Used(o->receiveHoldBuffer) + payload->length > ILibSCTP_MaxReceiverCredits) { *sentsack = ILibSCTP_SackStatus_Skip; return(NULL); }
RCTPRCVDEBUG(printf("STORING %u, size = %d\r\n", ntohl(payload->TSN), ntohs(payload->length));)
if (ReceiveHoldBuffer_Used(o->receiveHoldBuffer) + payload->length > ILibSCTP_MaxReceiverCredits) { *sentsack = ILibSCTP_SackStatus_Skip; return(NULL); }
retVal = ILibLinkedList_SortedInsertEx(o->receiveHoldBuffer, &ILibSCTP_AddPacketToHoldingQueue_Comparer, &ILibSCTP_AddPacketToHoldingQueue_Chooser, payload, o->receiveHoldBuffer);