Allow longer nop and quick acks.
This commit is contained in:
parent
9d93e9f090
commit
3dbf71e886
@ -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()
|
||||
<< "]");
|
||||
|
Loading…
Reference in New Issue
Block a user