disconnect servers that send missaligned protocol

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

No files matched your search

+1 -1
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",