diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-03 19:45:30 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-04 00:30:55 +0000 |
commit | f460f12c9d75468d0fac61940618ed780d8c577d (patch) | |
tree | 50b96942d890e9ea37ca93314d1491a6fdd364d2 /lib/ldap.c | |
parent | 23bb0541294b746ab6c36baf7093dfc3c61b6d56 (diff) |
ldap: Use host.dispname for infof() connection failure messages
As host.name may be encoded use dispname for infof() failure messages.
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index 513b4a8b0..011cb37d7 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -265,7 +265,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) server = ldapssl_init(conn->host.name, (int)conn->port, 1); if(server == NULL) { failf(data, "LDAP local: Cannot connect to %s:%ld", - conn->host.name, conn->port); + conn->host.dispname, conn->port); result = CURLE_COULDNT_CONNECT; goto quit; } @@ -306,7 +306,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) server = ldap_init(conn->host.name, (int)conn->port); if(server == NULL) { failf(data, "LDAP local: Cannot connect to %s:%ld", - conn->host.name, conn->port); + conn->host.dispname, conn->port); result = CURLE_COULDNT_CONNECT; goto quit; } @@ -342,7 +342,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) server = ldap_init(conn->host.name, (int)conn->port); if(server == NULL) { failf(data, "LDAP local: Cannot connect to %s:%ld", - conn->host.name, conn->port); + conn->host.dispname, conn->port); result = CURLE_COULDNT_CONNECT; goto quit; } |