Fix socket_network_client_timeout error check.
Change-Id: Ia30ffc1a7815c63d247d9ba298c2fe9d7a780af2
This commit is contained in:
parent
3fe6de1c39
commit
eabe8af7e3
|
@ -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 New Issue