Merge "Fix socket_network_client_timeout error check."
This commit is contained in:
commit
ed21796754
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;
|
struct addrinfo* addrs;
|
||||||
*getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
|
*getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
|
||||||
if (getaddrinfo_error != 0) {
|
if (*getaddrinfo_error != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue