Merge pull request #1835 from kleenexi2p/openssl

Fix segfault when UPnP is enabled
pull/1849/head
orignal 1 year ago committed by GitHub
commit e95035c143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,7 +163,7 @@ namespace transport
if (!a) return;
for (const auto& address : *a)
{
if (!address->host.is_v6 () && address->port)
if (address && !address->host.is_v6 () && address->port)
TryPortMapping (address);
}
m_Timer.expires_from_now (boost::posix_time::minutes(20)); // every 20 minutes
@ -215,7 +215,7 @@ namespace transport
if (!a) return;
for (const auto& address : *a)
{
if (!address->host.is_v6 () && address->port)
if (address && !address->host.is_v6 () && address->port)
CloseMapping (address);
}
}

Loading…
Cancel
Save