diff --git a/microscript/ILibDuktape_Commit.h b/microscript/ILibDuktape_Commit.h index 6de4fb5..bc19328 100644 --- a/microscript/ILibDuktape_Commit.h +++ b/microscript/ILibDuktape_Commit.h @@ -1,3 +1,5 @@ // This file is auto-generated, any edits may be overwritten -#define SOURCE_COMMIT_DATE "2021-Jul-9 12:40:53-0700" -#define SOURCE_COMMIT_HASH "2a2386b78e4a6ea591d7b192957377d5f2e70d9f" +#define SOURCE_COMMIT_DATE "2021-Jul-9 13:10:40-0700" +#define SOURCE_COMMIT_DATE "2021-Jul-9 13:10:40-0700" +#define SOURCE_COMMIT_HASH "51646002cd6d07c9d2ace22d3f526aeb33135734" +#define SOURCE_COMMIT_HASH "51646002cd6d07c9d2ace22d3f526aeb33135734" diff --git a/microstack/ILibWebRTC.c b/microstack/ILibWebRTC.c index 8a07f20..aa37fd6 100644 --- a/microstack/ILibWebRTC.c +++ b/microstack/ILibWebRTC.c @@ -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);