summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcutils/socket_network_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/socket_network_client.c b/libcutils/socket_network_client.c
index 3610f1b624..3300b8fb19 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;
}