]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1301110 CID:1301110 logically dead code
authorSeven Du <dujinfang@gmail.com>
Fri, 29 May 2015 04:08:46 +0000 (12:08 +0800)
committerSeven Du <dujinfang@gmail.com>
Fri, 29 May 2015 04:08:46 +0000 (12:08 +0800)
src/mod/endpoints/mod_rtmp/handshake.h

index e6a9f1443dc4027c254dc8435d2b98f7c176eae9..8a6e0ec6402ca7ef9a73cd1be7e20cadc40e0189 100644 (file)
@@ -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;
 }