Added extra byte intolength calculation to avoid infinite loop

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2698 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2008-12-05 20:59:57 +00:00
parent 4a57d09d64
commit 37516f9c95
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ int RtpCtrlThread::recvPacket( const unsigned char *packet, ssize_t packetLen )
return( -1 );
}
}
int paddedLen = 4+2+item->len;
int paddedLen = 4+2+item->len+1; // Add null byte
paddedLen = (((paddedLen-1)/4)+1)*4;
Debug( 5, "RTCP PL:%d", paddedLen );
sdesPtr += paddedLen;