From 6080a45c9ce2494ff787063ab06831158f17ec2b Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 2 Oct 2015 19:39:13 -0700 Subject: [PATCH] change cert to com. no variable named cert. --- node/Peer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index e135faa52..757f822c5 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -407,7 +407,7 @@ bool Peer::validateAndSetNetworkMembershipCertificate(const RuntimeEnvironment * // Check signature, log and return if cert is invalid if (com.signedBy() != Network::controllerFor(nwid)) { - TRACE("rejected network membership certificate for %.16llx signed by %s: signer not a controller of this network",(unsigned long long)_id,cert.signedBy().toString().c_str()); + TRACE("rejected network membership certificate for %.16llx signed by %s: signer not a controller of this network",(unsigned long long)_id,com.signedBy().toString().c_str()); return false; // invalid signer } @@ -416,7 +416,7 @@ bool Peer::validateAndSetNetworkMembershipCertificate(const RuntimeEnvironment * // We are the controller: RR->identity.address() == controller() == cert.signedBy() // So, verify that we signed th cert ourself if (!com.verify(RR->identity)) { - TRACE("rejected network membership certificate for %.16llx self signed by %s: signature check failed",(unsigned long long)_id,cert.signedBy().toString().c_str()); + TRACE("rejected network membership certificate for %.16llx self signed by %s: signature check failed",(unsigned long long)_id,com.signedBy().toString().c_str()); return false; // invalid signature } @@ -432,7 +432,7 @@ bool Peer::validateAndSetNetworkMembershipCertificate(const RuntimeEnvironment * } if (!com.verify(signer->identity())) { - TRACE("rejected network membership certificate for %.16llx signed by %s: signature check failed",(unsigned long long)_id,cert.signedBy().toString().c_str()); + TRACE("rejected network membership certificate for %.16llx signed by %s: signature check failed",(unsigned long long)_id,com.signedBy().toString().c_str()); return false; // invalid signature } }