From eabe8af7e367e267a97270df7924fd4173b718ed Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 24 Jul 2015 18:54:02 -0700 Subject: [PATCH] Fix socket_network_client_timeout error check. Change-Id: Ia30ffc1a7815c63d247d9ba298c2fe9d7a780af2 --- libcutils/socket_network_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }