Fix signed/unsigned mismatch warnings
This commit is contained in:
parent
92abf6e11d
commit
cbd0ec1b25
1 changed files with 2 additions and 2 deletions
|
|
@ -184,11 +184,11 @@ static bool unsealRtspMessage(char* rawMessage, int rawMessageLen, PRTSP_MESSAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
len = typeAndLen & ~ENCRYPTED_RTSP_BIT;
|
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");
|
Limelog("Rejecting partial encrypted RTSP message\n");
|
||||||
return false;
|
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");
|
Limelog("Rejecting encrypted RTSP message with excess data\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue