From 93ff1b9041a8282cd0785d22edbc1fd67b29533b Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 4 Sep 2015 15:43:21 +0200 Subject: [PATCH] net: correctly initialize nMinPingUsecTime `nMinPingUsecTime` was left uninitialized in CNode. The correct initialization for a minimum-until-now is int64_t's max value, so initialize it to that. Thanks @MarcoFalke for noticing. --- src/net.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net.cpp b/src/net.cpp index 526e2049a8d..87c4f0af0ae 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2261,6 +2261,7 @@ CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNa nPingUsecStart = 0; nPingUsecTime = 0; fPingQueued = false; + nMinPingUsecTime = std::numeric_limits::max(); { LOCK(cs_nLastNodeId);