mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fix crash
This commit is contained in:
parent
c415d7fffc
commit
087e61dbca
@ -283,11 +283,11 @@ namespace stream
|
|||||||
bool Stream::SendPacket (const uint8_t * buf, size_t len)
|
bool Stream::SendPacket (const uint8_t * buf, size_t len)
|
||||||
{
|
{
|
||||||
const I2NPMessage * leaseSet = nullptr;
|
const I2NPMessage * leaseSet = nullptr;
|
||||||
if (m_LeaseSetUpdated)
|
|
||||||
{
|
|
||||||
leaseSet = m_LocalDestination->GetLeaseSet ();
|
leaseSet = m_LocalDestination->GetLeaseSet ();
|
||||||
m_LeaseSetUpdated = false;
|
if (!leaseSet)
|
||||||
}
|
return false;
|
||||||
|
|
||||||
I2NPMessage * msg = i2p::garlic::routing.WrapMessage (m_RemoteLeaseSet,
|
I2NPMessage * msg = i2p::garlic::routing.WrapMessage (m_RemoteLeaseSet,
|
||||||
CreateDataMessage (this, buf, len), leaseSet);
|
CreateDataMessage (this, buf, len), leaseSet);
|
||||||
if (!m_OutboundTunnel || m_OutboundTunnel->IsFailed ())
|
if (!m_OutboundTunnel || m_OutboundTunnel->IsFailed ())
|
||||||
|
Loading…
Reference in New Issue
Block a user