mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Merge pull request #1835 from kleenexi2p/openssl
Fix segfault when UPnP is enabled
This commit is contained in:
@@ -163,7 +163,7 @@ namespace transport
|
|||||||
if (!a) return;
|
if (!a) return;
|
||||||
for (const auto& address : *a)
|
for (const auto& address : *a)
|
||||||
{
|
{
|
||||||
if (!address->host.is_v6 () && address->port)
|
if (address && !address->host.is_v6 () && address->port)
|
||||||
TryPortMapping (address);
|
TryPortMapping (address);
|
||||||
}
|
}
|
||||||
m_Timer.expires_from_now (boost::posix_time::minutes(20)); // every 20 minutes
|
m_Timer.expires_from_now (boost::posix_time::minutes(20)); // every 20 minutes
|
||||||
@@ -215,7 +215,7 @@ namespace transport
|
|||||||
if (!a) return;
|
if (!a) return;
|
||||||
for (const auto& address : *a)
|
for (const auto& address : *a)
|
||||||
{
|
{
|
||||||
if (!address->host.is_v6 () && address->port)
|
if (address && !address->host.is_v6 () && address->port)
|
||||||
CloseMapping (address);
|
CloseMapping (address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user