Blame SOURCES/0016-curl-7.29.0-1cf71bd7.patch

86693f
From cf8b6a21f1e9af984cfef417e83ca06b64565215 Mon Sep 17 00:00:00 2001
86693f
From: Kamil Dudka <kdudka@redhat.com>
86693f
Date: Mon, 20 Jan 2014 20:24:05 +0100
86693f
Subject: [PATCH] Curl_is_connected: use proxy name in error message when proxy is used
86693f
86693f
Backport of upstream commit 1cf71bd76e4a330e5b7824014c2605e4bfe1a0a5.
86693f
---
86693f
 lib/connect.c |    3 ++-
86693f
 1 files changed, 2 insertions(+), 1 deletions(-)
86693f
86693f
diff --git a/lib/connect.c b/lib/connect.c
86693f
index 0afb1ee..ba9ab92 100644
86693f
--- a/lib/connect.c
86693f
+++ b/lib/connect.c
86693f
@@ -758,7 +758,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
86693f
     error = SOCKERRNO;
86693f
     data->state.os_errno = error;
86693f
     failf(data, "Failed connect to %s:%ld; %s",
86693f
-          conn->host.name, conn->port, Curl_strerror(conn, error));
86693f
+          conn->bits.proxy?conn->proxy.name:conn->host.name,
86693f
+          conn->port, Curl_strerror(conn, error));
86693f
   }
86693f
 
86693f
   return code;
86693f
-- 
86693f
1.7.1
86693f