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

Loading…
Cancel
Save