Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cpubug committed Apr 23, 2014
1 parent c415d7f commit 087e61d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ namespace stream
bool Stream::SendPacket (const uint8_t * buf, size_t len)
{
const I2NPMessage * leaseSet = nullptr;
if (m_LeaseSetUpdated)
{
leaseSet = m_LocalDestination->GetLeaseSet ();
m_LeaseSetUpdated = false;
}

leaseSet = m_LocalDestination->GetLeaseSet ();
if (!leaseSet)
return false;

I2NPMessage * msg = i2p::garlic::routing.WrapMessage (m_RemoteLeaseSet,
CreateDataMessage (this, buf, len), leaseSet);
if (!m_OutboundTunnel || m_OutboundTunnel->IsFailed ())
Expand Down

0 comments on commit 087e61d

Please sign in to comment.