Browse Source

reduced memory usage

pull/163/head
orignal 10 years ago
parent
commit
57d4ccfdfd
  1. 2
      NTCPSession.cpp
  2. 1
      SSUSession.cpp

2
NTCPSession.cpp

@ -394,6 +394,7 @@ namespace transport @@ -394,6 +394,7 @@ namespace transport
Terminate ();
return;
}
m_RemoteIdentity.DropVerifier ();
SendPhase4 (tsA, tsB);
}
@ -467,6 +468,7 @@ namespace transport @@ -467,6 +468,7 @@ namespace transport
Terminate ();
return;
}
m_RemoteIdentity.DropVerifier ();
LogPrint (eLogInfo, "NTCP session to ", m_Socket.remote_endpoint (), " connected");
Connected ();

1
SSUSession.cpp

@ -238,6 +238,7 @@ namespace transport @@ -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);
}

Loading…
Cancel
Save