Browse Source

don't crash on os x when no lease set found for udp tunnel

pull/739/head
Jeff 8 years ago committed by Jeff Becker
parent
commit
8071df0e68
  1. 1
      Datagram.cpp

1
Datagram.cpp

@ -293,6 +293,7 @@ namespace datagram
void DatagramSession::HandleLeaseSetUpdated(std::shared_ptr<i2p::data::LeaseSet> ls) void DatagramSession::HandleLeaseSetUpdated(std::shared_ptr<i2p::data::LeaseSet> ls)
{ {
if(!ls) return;
// only update lease set if found and newer than previous lease set // only update lease set if found and newer than previous lease set
uint64_t oldExpire = 0; uint64_t oldExpire = 0;
if(m_RemoteLeaseSet) oldExpire = m_RemoteLeaseSet->GetExpirationTime(); if(m_RemoteLeaseSet) oldExpire = m_RemoteLeaseSet->GetExpirationTime();

Loading…
Cancel
Save