aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-09-18 23:03:30 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-09-21 21:01:00 +0200
commit9215cee4c6c3cc15b30e50bec98cbbc9f7a62663 (patch)
tree7d01a2afab3c36564c7b523f7a3e86522665c858 /lib/ssluse.c
parent34df869f99477edda61d639151b1edf75998abd9 (diff)
openssl: use correct port number in error message
In ossl_connect_step2() when the "Unknown SSL protocol error" occurs, it would output the local port number instead of the remote one which showed when doing SSL over a proxy (but with the correct remote host name). As libcurl only speaks SSL to the remote we know it is the remote port. Bug: http://curl.haxx.se/bug/view.cgi?id=1281 Reported-by: Gordon Marler
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 57e8bea0b..bd9f3d480 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -1810,7 +1810,7 @@ ossl_connect_step2(struct connectdata *conn, int sockindex)
*/
if(CURLE_SSL_CONNECT_ERROR == rc && errdetail == 0) {
failf(data, "Unknown SSL protocol error in connection to %s:%ld ",
- conn->host.name, conn->port);
+ conn->host.name, conn->remote_port);
return rc;
}
/* Could be a CERT problem */