Check that updates aren't received in rpc_result.
This commit is contained in:
parent
7faf7aeba7
commit
4a3f56e6c1
@ -250,6 +250,10 @@ Status SessionConnection::on_packet_rpc_result(const MsgInfo &info, Slice packet
|
||||
if (parser.get_error()) {
|
||||
return Status::Error(PSLICE() << "Failed to parse mtproto_api::rpc_result: " << parser.get_error());
|
||||
}
|
||||
if (req_msg_id == 0) {
|
||||
LOG(ERROR) << "Receive an update in rpc_result: message_id = " << info.message_id << ", seq_no = " << info.seq_no;
|
||||
return Status::Error("Receive an update in rpc_result");
|
||||
}
|
||||
|
||||
auto object_begin_pos = packet.size() - parser.get_left_len();
|
||||
int32 id = parser.fetch_int();
|
||||
|
Loading…
x
Reference in New Issue
Block a user