diff --git a/src/mesh/CryptoEngine.cpp b/src/mesh/CryptoEngine.cpp index 5624f0cbc..f4abff92e 100644 --- a/src/mesh/CryptoEngine.cpp +++ b/src/mesh/CryptoEngine.cpp @@ -297,6 +297,7 @@ bool CryptoEngine::setCryptoSharedSecret(meshtastic_UserLite_public_key_t pubkey } if (delta > oldestDelta) { oldestKey = key; + oldestDelta = delta; } } sharedSecretCache.erase(oldestKey);