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

pull/21043/head
practicalswift 4 years ago
parent f72d80b07a
commit f5f2f97168

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

Loading…
Cancel
Save