Skip to content

Commit

Permalink
Fix signed/unsigned mismatch warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Feb 3, 2024
1 parent 92abf6e commit cbd0ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RtspConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ static bool unsealRtspMessage(char* rawMessage, int rawMessageLen, PRTSP_MESSAGE
}

len = typeAndLen & ~ENCRYPTED_RTSP_BIT;
if (len + sizeof(ENC_RTSP_HEADER) > rawMessageLen) {
if (len + sizeof(ENC_RTSP_HEADER) > (uint32_t)rawMessageLen) {
Limelog("Rejecting partial encrypted RTSP message\n");
return false;
}
else if (len + sizeof(ENC_RTSP_HEADER) < rawMessageLen) {
else if (len + sizeof(ENC_RTSP_HEADER) < (uint32_t)rawMessageLen) {
Limelog("Rejecting encrypted RTSP message with excess data\n");
return false;
}
Expand Down

0 comments on commit cbd0ec1

Please sign in to comment.