disconnect servers that send missaligned protocol

This commit is contained in:
Jeff Hill
2004-06-14 17:45:43 +00:00
parent 1a6c1caa54
commit da5bc3b820
4 changed files with 12 additions and 6 deletions

View File

@@ -1091,8 +1091,7 @@ bool tcpiiu::processIncoming (
}
// check for 8 byte aligned protocol
if ( ( ( this->curMsg.m_postsize >> 3 ) << 3 )
!= this->curMsg.m_postsize ) {
if ( this->curMsg.m_postsize & 0x7 ) {
this->printf ( mgr.cbGuard,
"CAC: server sent missaligned payload 0x%x\n",
this->curMsg.m_postsize );