net: Avoid UBSan warning in ProcessMessage(...)

Github-Pull: #21043
Rebased-From: f5f2f97168
pull/764/head
practicalswift 4 years ago committed by MarcoFalke
parent 4607019798
commit 95218ee95c

@ -2305,6 +2305,9 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
bool fRelay = true;
vRecv >> nVersion >> nServiceInt >> nTime >> addrMe;
if (nTime < 0) {
nTime = 0;
}
nServices = ServiceFlags(nServiceInt);
if (!pfrom.IsInboundConn())
{

Loading…
Cancel
Save