From 57d4ccfdfd36d72a00d033facb4bc266fa4bdbe7 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 12 Mar 2015 11:43:36 -0400 Subject: [PATCH] reduced memory usage --- NTCPSession.cpp | 2 ++ SSUSession.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/NTCPSession.cpp b/NTCPSession.cpp index 93f262d6..79fdba4c 100644 --- a/NTCPSession.cpp +++ b/NTCPSession.cpp @@ -394,6 +394,7 @@ namespace transport Terminate (); return; } + m_RemoteIdentity.DropVerifier (); SendPhase4 (tsA, tsB); } @@ -467,6 +468,7 @@ namespace transport Terminate (); return; } + m_RemoteIdentity.DropVerifier (); LogPrint (eLogInfo, "NTCP session to ", m_Socket.remote_endpoint (), " connected"); Connected (); diff --git a/SSUSession.cpp b/SSUSession.cpp index 4fe1fc39..9fa71558 100644 --- a/SSUSession.cpp +++ b/SSUSession.cpp @@ -238,6 +238,7 @@ namespace transport // verify if (!s.Verify (m_RemoteIdentity, payload)) LogPrint (eLogError, "SSU signature verification failed"); + m_RemoteIdentity.DropVerifier (); SendSessionConfirmed (y, ourAddress, addressSize + 2); }