From 53934a470bec3723d429d59a202b93a9d1348565 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 6 Aug 2022 16:30:49 -0400 Subject: [PATCH] update keys for NTCP2 and SSU2 addreses --- libi2pd/RouterContext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libi2pd/RouterContext.cpp b/libi2pd/RouterContext.cpp index 2c24fc65..eb034194 100644 --- a/libi2pd/RouterContext.cpp +++ b/libi2pd/RouterContext.cpp @@ -347,10 +347,11 @@ namespace i2p { (*it)->s = m_NTCP2Keys->staticPublicKey; memcpy ((*it)->i, m_NTCP2Keys->iv, 16); + it++; } else it = addresses.erase (it); - updated = true;; + updated = true; } else it++; @@ -399,6 +400,7 @@ namespace i2p { (*it)->s = m_SSU2Keys->staticPublicKey; (*it)->i = m_SSU2Keys->intro; + it++; } else it = addresses.erase (it);