summaryrefslogtreecommitdiff
path: root/lib/openldap.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2010-11-22 23:59:59 +0100
committerKamil Dudka <kdudka@redhat.com>2010-11-22 23:59:59 +0100
commitd212fe43af25b9d550cf7e84b24374a3ea120808 (patch)
treedcf11e64d6e1ad3e79642b2c6d4d8287c19c1473 /lib/openldap.c
parent13d537e40451c1c112b3c565ce0de7adfd8e41cc (diff)
downloadcurl-d212fe43af25b9d550cf7e84b24374a3ea120808.tar.gz
openldap: use remote port in URL passed to ldap_init_fd()
... not the proxy port. It makes no difference unless a proxy is used.
Diffstat (limited to 'lib/openldap.c')
-rw-r--r--lib/openldap.c2
1 files changed, 1 insertions, 1 deletions
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) {