mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
CID:1301110 CID:1301110 logically dead code
This commit is contained in:
1 parent
8e37e9b4d4
commit
6c61fd195b
1 file changed
+4
-1
@@ -101,9 +101,11 @@ static unsigned int GetDigestOffset2(uint8_t *handshake, unsigned int len)
|
||||
|
||||
res = (offset % 728) + 776;
|
||||
|
||||
#if 0 //CID 1301111 logically dead code
|
||||
if (res + 32 > 1535) {
|
||||
RTMP_Log(RTMP_LOGERROR, "%s: Couldn't calculate correct digest offset (got %d), exiting", __FUNCTION__, res);
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -125,12 +127,13 @@ static unsigned int GetDigestOffset1(uint8_t *handshake, unsigned int len)
|
||||
|
||||
res = (offset % 728) + 12;
|
||||
|
||||
#if 0 //CID 1301110 logicall dead code
|
||||
if (res + 32 > 771) {
|
||||
RTMP_Log(RTMP_LOGERROR,
|
||||
"%s: Couldn't calculate digest offset (got %d), exiting!",
|
||||
__FUNCTION__, res);
|
||||
}
|
||||
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user