* commit '12d912bc4facd9490becd9d1306a54fd079a8800': Fix socket_network_client_timeout error check.
This commit is contained in:
commit
3dced0d2c6
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ int socket_network_client_timeout(const char* host, int port, int type, int time
|
|||
|
||||
struct addrinfo* addrs;
|
||||
*getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
|
||||
if (getaddrinfo_error != 0) {
|
||||
if (*getaddrinfo_error != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue