diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-12-04 22:46:49 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-12-04 22:51:37 +0100 |
commit | 1cf71bd76e4a330e5b7824014c2605e4bfe1a0a5 (patch) | |
tree | 307c2b8f4f88a79f6a2a97e5fd800183cf379f89 /lib | |
parent | 2c0ecac9d3a22bf329cb50f884835c3f8b167cf3 (diff) |
Curl_is_connected: use proxy name in error message when proxy is used
(bug introduced in 255826c4, never present in a release)
Reported-by: Dima Tisnek
Bug: http://curl.haxx.se/mail/lib-2013-12/0006.html
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 9c38724d6..a39699ba7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -827,7 +827,8 @@ CURLcode Curl_is_connected(struct connectdata *conn, } failf(data, "Failed to connect to %s port %ld: %s", - conn->host.name, conn->port, Curl_strerror(conn, error)); + conn->bits.proxy?conn->proxy.name:conn->host.name, + conn->port, Curl_strerror(conn, error)); } return code; |