mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
fixed crash
This commit is contained in:
parent
84d9c8f1b8
commit
d30ee99cf1
@ -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
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
port = addr->port;
|
||||
if (addr) port = addr->port;
|
||||
}
|
||||
}
|
||||
if (!port)
|
||||
|
Loading…
x
Reference in New Issue
Block a user