aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index cb2ba0101..6e755f44e 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -196,10 +196,10 @@ CURLcode Curl_ldap(struct connectdata *conn)
DYNA_GET_FUNCTION(void (*)(void *), ldap_memfree);
DYNA_GET_FUNCTION(void (*)(void *, int), ber_free);
- server = ldap_init(conn->hostname, conn->port);
+ server = ldap_init(conn->host.name, conn->port);
if (server == NULL) {
failf(data, "LDAP: Cannot connect to %s:%d",
- conn->hostname, conn->port);
+ conn->host.name, conn->port);
status = CURLE_COULDNT_CONNECT;
}
else {