summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-17 09:30:28 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-17 09:30:28 -0700
commit1d8ded3293495ceb98553a0b446311e86bb00ee2 (patch)
tree8f2cb4325c7a0c5d1a94d93403fe8d3dd24c5eb7 /node
parent2487a8bede10f1ea58ca2778d9772ee9056e6b12 (diff)
downloadinfinitytier-1d8ded3293495ceb98553a0b446311e86bb00ee2.tar.gz
infinitytier-1d8ded3293495ceb98553a0b446311e86bb00ee2.zip
Tiny largely non-consequential credential fix.
Diffstat (limited to 'node')
-rw-r--r--node/Membership.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Membership.cpp b/node/Membership.cpp
index 62c07314..ceba24b2 100644
--- a/node/Membership.cpp
+++ b/node/Membership.cpp
@@ -153,7 +153,7 @@ static Membership::AddCredentialResult _addCredImpl(Hashtable<uint32_t,C> &remot
{
C *rc = remoteCreds.get(cred.id());
if (rc) {
- if (rc->timestamp() >= cred.timestamp()) {
+ if (rc->timestamp() > cred.timestamp()) {
TRACE("addCredential(type==%d) for %s on %.16llx REJECTED (older than credential we have)",(int)C::credentialType(),cred.issuedTo().toString().c_str(),cred.networkId());
return Membership::ADD_REJECTED;
}