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

@@ -2318,7 +2318,7 @@ int camessage ( struct client *client )
* disconnect clients that dont send 8 byte
* aligned payloads
*/
if ( ( ( msgsize >> 3 ) << 3 ) != msgsize ) {
if ( msgsize & 0x7 ) {
send_err ( &msg, ECA_INTERNAL, client,
"CAS: Missaligned protocol rejected" );
log_header ( "CAS: Missaligned protocol rejected",