From d9dc4b70086dd635d3c7105c6ef3b58551142aa6 Mon Sep 17 00:00:00 2001 From: "Jason B. Cox" Date: Thu, 10 Apr 2025 10:51:37 -0700 Subject: [PATCH] Update oldestDelta during cache eviction --- src/mesh/CryptoEngine.cpp | 1 + 1 file changed, 1 insertion(+) 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);