Log peer IP if possible.

This commit is contained in:
JoelKatz
2013-03-06 19:57:56 -08:00
parent eaec5cb206
commit 32ca30c2e9

View File

@@ -915,7 +915,7 @@ static void checkPropose(Job& job, boost::shared_ptr<ripple::TMProposeSet> packe
{
Peer::pointer p = peer.lock();
cLog(lsWARNING) << "proposal with previous ledger fails signature check: " <<
p ? p->getIP() : "???";
(p ? p->getIP() : std::string("???"));
Peer::punishPeer(peer, LT_InvalidSignature);
return;
}