Allow longer nop and quick acks.

This commit is contained in:
levlam 2024-01-30 19:23:04 +03:00
parent 9d93e9f090
commit 3dbf71e886

View File

@ -416,7 +416,7 @@ Result<uint64> Transport::read_auth_key_id(Slice message) {
}
Result<Transport::ReadResult> Transport::read(MutableSlice message, const AuthKey &auth_key, PacketInfo *packet_info) {
if (message.size() < 12) {
if (message.size() < 16) {
if (message.size() < 4) {
return Status::Error(PSLICE() << "Invalid MTProto message: smaller than 4 bytes [size = " << message.size()
<< "]");