Index: net/quic/congestion_control/rtt_stats.h |
diff --git a/net/quic/congestion_control/rtt_stats.h b/net/quic/congestion_control/rtt_stats.h |
index 9dd5620b19ee3cf6a4afb66f7a4c782249831ad1..3d256d9ddfa10d468fb33930c6c15e1242a0ff8b 100644 |
--- a/net/quic/congestion_control/rtt_stats.h |
+++ b/net/quic/congestion_control/rtt_stats.h |
@@ -53,6 +53,10 @@ class NET_EXPORT_PRIVATE RttStats { |
// Sets an initial RTT to be used for SmoothedRtt before any RTT updates. |
void set_initial_rtt_us(int64 initial_rtt_us) { |
+ if (initial_rtt_us <= 0) { |
+ LOG(DFATAL) << "Attempt to set initial rtt to <= 0."; |
+ return; |
+ } |
initial_rtt_us_ = initial_rtt_us; |
} |