Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index d465bd45dce23ec3c4d481a3532f11b184fe70a8..e29130a04358b116959a026e1a04b73259a4988e 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -847,12 +847,12 @@ bool QuicConnection::ValidateAckFrame(const QuicAckFrame& incoming_ack) { |
return false; |
} |
- for (QuicPacketNumber revived_packet : incoming_ack.revived_packets) { |
- if (!incoming_ack.missing_packets.Contains(revived_packet)) { |
- DLOG(ERROR) << ENDPOINT |
- << "Peer specified revived packet which was not missing."; |
- return false; |
- } |
+ if (incoming_ack.latest_revived_packet != 0 && |
+ !incoming_ack.missing_packets.Contains( |
+ incoming_ack.latest_revived_packet)) { |
+ DLOG(ERROR) << ENDPOINT |
+ << "Peer specified revived packet which was not missing."; |
+ return false; |
} |
return true; |
} |