Browse Source

fixed crash

pull/1828/head
orignal 2 years ago
parent
commit
d30ee99cf1
  1. 4
      libi2pd/RouterContext.cpp

4
libi2pd/RouterContext.cpp

@ -352,7 +352,7 @@ namespace i2p @@ -352,7 +352,7 @@ namespace i2p
if (!port)
{
for (const auto& address : *addresses)
if (address->port)
if (address && address->port)
{
newPort = address->port;
break;
@ -693,7 +693,7 @@ namespace i2p @@ -693,7 +693,7 @@ namespace i2p
default: ;
}
}
port = addr->port;
if (addr) port = addr->port;
}
}
if (!port)

Loading…
Cancel
Save