summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-25 03:06:47 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-25 03:06:47 +0000
commit3dced0d2c6000d1d77fd2ada83a9853734367cbc (patch)
tree76a32a4072c86801d54ffe396a2b0c8ed629184f /libcutils
parent8b262b9de4defd234ec3593453bfb1dba4642151 (diff)
parent12d912bc4facd9490becd9d1306a54fd079a8800 (diff)
downloadcore-3dced0d2c6000d1d77fd2ada83a9853734367cbc.tar.gz
core-3dced0d2c6000d1d77fd2ada83a9853734367cbc.tar.bz2
core-3dced0d2c6000d1d77fd2ada83a9853734367cbc.zip
am 12d912bc: am ed217967: Merge "Fix socket_network_client_timeout error check."
* commit '12d912bc4facd9490becd9d1306a54fd079a8800': Fix socket_network_client_timeout error check.
Diffstat (limited to 'libcutils')
-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 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;
}