mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
fix off-by-one error in chat packet
This commit is contained in:
@@ -958,8 +958,8 @@ int cs_chat (int client_fd) {
|
|||||||
if (has_signature) recv_all(client_fd, recv_buffer, 256, false);
|
if (has_signature) recv_all(client_fd, recv_buffer, 256, false);
|
||||||
|
|
||||||
readVarInt(client_fd); // Ignore message count
|
readVarInt(client_fd); // Ignore message count
|
||||||
readUint32(client_fd); // Ignore acknowledgement bitmask
|
// Ignore acknowledgement bitmask and checksum
|
||||||
readByte(client_fd); // Ignore checksum
|
recv_all(client_fd, recv_buffer, 4, false);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user