mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
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
This commit is contained in:
parent
34df869f99
commit
9215cee4c6
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user