From d212fe43af25b9d550cf7e84b24374a3ea120808 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 22 Nov 2010 23:59:59 +0100 Subject: openldap: use remote port in URL passed to ldap_init_fd() ... not the proxy port. It makes no difference unless a proxy is used. --- lib/openldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openldap.c b/lib/openldap.c index ee4915f66..6b059d10a 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -188,7 +188,7 @@ static CURLcode ldap_connect(struct connectdata *conn, bool *done) if (conn->protocol & PROT_SSL) *ptr++ = 's'; snprintf(ptr, sizeof(hosturl)-(ptr-hosturl), "://%s:%d", - conn->host.name, conn->port); + conn->host.name, conn->remote_port); rc = ldap_init_fd(conn->sock[FIRSTSOCKET], li->proto, hosturl, &li->ld); if (rc) { -- cgit v1.2.3