fixed crash

This commit is contained in:
orignal 2021-09-05 09:08:29 -04:00
parent c763472914
commit a54b5c18c6

View File

@ -469,7 +469,7 @@ namespace tunnel
{
LogPrint (eLogInfo, "Tunnels: Can't select first hop for a tunnel. Trying already connected");
hop = i2p::transport::transports.GetRandomPeer ();
if (!hop->IsECIES ()) hop = nullptr;
if (hop && !hop->IsECIES ()) hop = nullptr;
}
if (!hop)
{