projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e1227
)
connect.c: return changed to CURLE_COULDNT_CONNECT when opensocket fails
author
Lijo Antony
<lijotantony@gmail.com>
Mon, 2 Apr 2012 22:45:25 +0000
(
02:45
+0400)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 3 Apr 2012 20:56:29 +0000
(22:56 +0200)
Curl_socket returns CURLE_COULDNT_CONNECT when the opensocket callback
returns CURL_SOCKET_BAD. Previous return value CURLE_FAILED_INIT
conveys incorrect information to the user.
lib/connect.c
patch
|
blob
|
history
diff --git
a/lib/connect.c
b/lib/connect.c
index
38f68b4
..
2d59229
100644
(file)
--- a/
lib/connect.c
+++ b/
lib/connect.c
@@
-1228,7
+1228,7
@@
CURLcode Curl_socket(struct connectdata *conn,
if(*sockfd == CURL_SOCKET_BAD)
/* no socket, no connection */
- return CURLE_
FAILED_INI
T;
+ return CURLE_
COULDNT_CONNEC
T;
#if defined(ENABLE_IPV6) && defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
if(conn->scope && (addr->family == AF_INET6)) {