Skip to content

Commit

Permalink
sctp
Browse files Browse the repository at this point in the history
  • Loading branch information
disa6302 committed Jun 19, 2024
1 parent 06cfcac commit 4c1e457
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/Ice/TurnConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ STATUS checkTurnPeerConnections(PTurnConnection pTurnConnection)
PStunAttributeChannelNumber pStunAttributeChannelNumber = NULL;
UINT32 i = 0;

UNUSED_PARAM(sendStatus);
// turn mutex is assumed to be locked.
CHK(pTurnConnection != NULL, STATUS_NULL_ARG);
for (i = 0; i < pTurnConnection->turnPeerCount; ++i) {
Expand Down Expand Up @@ -1085,7 +1086,6 @@ STATUS checkTurnPeerConnections(PTurnConnection pTurnConnection)
pTurnConnection->pControlChannel, NULL, FALSE);
}
}
DLOGI("Send Status set to : 0x%08x", sendStatus);
CHK_STATUS(turnConnectionRefreshAllocation(pTurnConnection));

CleanUp:
Expand Down
3 changes: 3 additions & 0 deletions src/source/Sctp/Sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,5 +366,8 @@ INT32 onSctpInboundPacket(struct socket* sock, union sctp_sockstore addr, PVOID
free(data);
}

if (STATUS_FAILED(retStatus)) {
return -1;
}
return 1;
}
4 changes: 4 additions & 0 deletions src/source/Signaling/LwsApiCalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ INT32 lwsHttpCallbackRoutine(struct lws* wsi, enum lws_callback_reasons reason,
PStateMachineState pStateMachineState;
BOOL skewMapContains = FALSE;

UNUSED_PARAM(logLevel);
DLOGV("HTTPS callback with reason %d", reason);

// Early check before accessing the custom data field to see if we are interested in processing the message
Expand Down Expand Up @@ -1493,6 +1494,9 @@ STATUS joinStorageSessionLws(PSignalingClient pSignalingClient, UINT64 time)
PCHAR pResponseStr;
UINT32 resultLen;

UNUSED_PARAM(pResponseStr);
UNUSED_PARAM(pLwsCallInfo);
UNUSED_PARAM(resultLen);
CHK(pSignalingClient != NULL, STATUS_NULL_ARG);
CHK(pSignalingClient->channelEndpointWebrtc[0] != '\0', STATUS_INTERNAL_ERROR);

Expand Down

0 comments on commit 4c1e457

Please sign in to comment.