mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fixed crash
This commit is contained in:
parent
84d9c8f1b8
commit
d30ee99cf1
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue