From: Daniel Stenberg Date: Wed, 4 Dec 2013 21:46:49 +0000 (+0100) Subject: Curl_is_connected: use proxy name in error message when proxy is used X-Git-Tag: curl-7_34_0~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cf71bd76e4a330e5b7824014c2605e4bfe1a0a5;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/connect.c b/lib/connect.c index 9c38724d63..a39699ba79 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;