mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-11 08:27:36 +00:00
Update oldestDelta during cache eviction
This commit is contained in:
parent
c7e44a2301
commit
d9dc4b7008
@ -297,6 +297,7 @@ bool CryptoEngine::setCryptoSharedSecret(meshtastic_UserLite_public_key_t pubkey
|
||||
}
|
||||
if (delta > oldestDelta) {
|
||||
oldestKey = key;
|
||||
oldestDelta = delta;
|
||||
}
|
||||
}
|
||||
sharedSecretCache.erase(oldestKey);
|
||||
|
Loading…
Reference in New Issue
Block a user