1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

fixed crash in adnl

This commit is contained in:
ton 2020-02-29 09:07:12 +04:00
parent dd4ac0f440
commit 27aaa11524
2 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ void AdnlPeerPairImpl::receive_packet_checked(AdnlPacket packet) {
return;
}
if (packet.seqno() > 0) {
if (received_packet(static_cast<td::uint32>(packet.seqno()))) {
if (received_packet(packet.seqno())) {
VLOG(ADNL_INFO) << this << ": dropping IN message: old seqno: " << packet.seqno() << " (current max " << in_seqno_
<< ")";
return;
@ -165,7 +165,7 @@ void AdnlPeerPairImpl::receive_packet_checked(AdnlPacket packet) {
// delivering
if (packet.seqno() > 0) {
add_received_packet(static_cast<td::uint32>(packet.seqno()));
add_received_packet(packet.seqno());
}
if (packet.confirm_seqno() > ack_seqno_) {