mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
Fix possible cur_ip nullptr usage in np_handler.cpp
This commit is contained in:
parent
6374a9f19b
commit
86cf8a1717
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ np_handler::np_handler()
|
|||
is_connected = false;
|
||||
cur_ip = "0.0.0.0";
|
||||
}
|
||||
cur_ip = p;
|
||||
else
|
||||
{
|
||||
cur_ip = p;
|
||||
}
|
||||
|
||||
struct in_addr addr;
|
||||
inet_pton(AF_INET, cur_ip.c_str(), &addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue