mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-01 20:25:09 -06:00
Fix possible cur_ip nullptr usage in np_handler.cpp
This commit is contained in:
parent
6374a9f19b
commit
86cf8a1717
@ -69,7 +69,10 @@ np_handler::np_handler()
|
|||||||
is_connected = false;
|
is_connected = false;
|
||||||
cur_ip = "0.0.0.0";
|
cur_ip = "0.0.0.0";
|
||||||
}
|
}
|
||||||
cur_ip = p;
|
else
|
||||||
|
{
|
||||||
|
cur_ip = p;
|
||||||
|
}
|
||||||
|
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
inet_pton(AF_INET, cur_ip.c_str(), &addr);
|
inet_pton(AF_INET, cur_ip.c_str(), &addr);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user