aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-02-04 00:05:30 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-02-04 00:07:39 +0000
commit0ebe2c15d1102e6d6e8bf3554df2b9b2bacb067f (patch)
tree40fdbc2d3a2d9a31a3aa3763d6818a3f33003c8c /lib
parent28c9e1edf4babbfd3e5bea5006212f1fb24c2f94 (diff)
hostasyn: Prefer 'CURLcode result' for curl result codes
Diffstat (limited to 'lib')
-rw-r--r--lib/hostasyn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hostasyn.c b/lib/hostasyn.c
index 3cf800430..23a0c9277 100644
--- a/lib/hostasyn.c
+++ b/lib/hostasyn.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -123,21 +123,21 @@ CURLcode Curl_addrinfo_callback(struct connectdata *conn,
CURLcode Curl_async_resolved(struct connectdata *conn,
bool *protocol_done)
{
- CURLcode code;
+ CURLcode result;
if(conn->async.dns) {
conn->dns_entry = conn->async.dns;
conn->async.dns = NULL;
}
- code = Curl_setup_conn(conn, protocol_done);
+ result = Curl_setup_conn(conn, protocol_done);
- if(code)
+ if(result)
/* We're not allowed to return failure with memory left allocated
in the connectdata struct, free those here */
Curl_disconnect(conn, FALSE); /* close the connection */
- return code;
+ return result;
}
/*