diff --git a/libcutils/socket_network_client.c b/libcutils/socket_network_client.c index 3610f1b62..3300b8fb1 100644 --- a/libcutils/socket_network_client.c +++ b/libcutils/socket_network_client.c @@ -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; }