Tiny largely non-consequential credential fix.

This commit is contained in:
Adam Ierymenko 2017-04-17 09:30:28 -07:00
parent 2487a8bede
commit 1d8ded3293

View File

@ -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;
}