diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 65b2878b3..d608e1e2e 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -577,6 +577,8 @@ CURLcode Curl_is_connected(struct connectdata *conn, data->state.os_errno = error; infof(data, "Connection failed\n"); if(trynextip(conn, sockindex, connected)) { + failf(data, "Failed connect to %s:%d; %s", + conn->host.name, conn->port, Curl_strerror(conn, error)); code = CURLE_COULDNT_CONNECT; } } @@ -596,7 +598,7 @@ CURLcode Curl_is_connected(struct connectdata *conn, error = SOCKERRNO; data->state.os_errno = error; failf(data, "Failed connect to %s:%d; %s", - conn->host.name, conn->port, Curl_strerror(conn,error)); + conn->host.name, conn->port, Curl_strerror(conn, error)); code = CURLE_COULDNT_CONNECT; } } |