pass shared_ptr to SendRelayIntro

This commit is contained in:
orignal 2015-11-30 10:23:05 -05:00
parent a0106fe5d8
commit 0a6d849435
2 changed files with 3 additions and 3 deletions

View file

@ -479,7 +479,7 @@ namespace transport
buf += 32; // introkey
uint32_t nonce = bufbe32toh (buf);
SendRelayResponse (nonce, from, introKey, session->m_RemoteEndpoint);
SendRelayIntro (session.get (), from);
SendRelayIntro (session, from);
}
}
@ -537,7 +537,7 @@ namespace transport
LogPrint (eLogDebug, "SSU relay response sent");
}
void SSUSession::SendRelayIntro (SSUSession * session, const boost::asio::ip::udp::endpoint& from)
void SSUSession::SendRelayIntro (std::shared_ptr<SSUSession> session, const boost::asio::ip::udp::endpoint& from)
{
if (!session) return;
// Alice's address always v4