fixed crash upon I2CP session disconnect

This commit is contained in:
orignal 2016-06-08 14:14:19 -04:00
parent d8f24b442b
commit 21b5f2c96a
2 changed files with 10 additions and 9 deletions

4
I2CP.h
View file

@ -63,7 +63,7 @@ namespace client
{
public:
I2CPDestination (I2CPSession& owner, std::shared_ptr<const i2p::data::IdentityEx> identity, bool isPublic, const std::map<std::string, std::string>& params);
I2CPDestination (std::shared_ptr<I2CPSession> owner, std::shared_ptr<const i2p::data::IdentityEx> identity, bool isPublic, const std::map<std::string, std::string>& params);
void SetEncryptionPrivateKey (const uint8_t * key);
void LeaseSetCreated (const uint8_t * buf, size_t len); // called from I2CPSession
@ -87,7 +87,7 @@ namespace client
private:
I2CPSession& m_Owner;
std::shared_ptr<I2CPSession> m_Owner;
std::shared_ptr<const i2p::data::IdentityEx> m_Identity;
uint8_t m_EncryptionPrivateKey[256];
uint64_t m_LeaseSetExpirationTime;