mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-07 13:38:42 +00:00
Tiny largely non-consequential credential fix.
This commit is contained in:
parent
2487a8bede
commit
1d8ded3293
@ -153,7 +153,7 @@ static Membership::AddCredentialResult _addCredImpl(Hashtable<uint32_t,C> &remot
|
|||||||
{
|
{
|
||||||
C *rc = remoteCreds.get(cred.id());
|
C *rc = remoteCreds.get(cred.id());
|
||||||
if (rc) {
|
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());
|
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;
|
return Membership::ADD_REJECTED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user