openldap: use remote port in URL passed to ldap_init_fd()

... not the proxy port.  It makes no difference unless a proxy is used.
This commit is contained in:
Kamil Dudka 2010-11-22 23:59:59 +01:00
parent 13d537e404
commit d212fe43af
1 changed files with 1 additions and 1 deletions

View File

@ -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) {