This commit is contained in:
jl777
2016-11-10 08:57:09 -03:00
parent e2cf55f2c2
commit 0d2cefb06c
2 changed files with 5 additions and 3 deletions

View File

@@ -4896,7 +4896,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
int nDoS;
if (state.IsInvalid(nDoS)) {
if (nDoS > 0)
Misbehaving(pfrom->GetId(), nDoS);
Misbehaving(pfrom->GetId(), nDoS/nDoS);
return error("invalid header received");
}
}