From: Kamil Dudka Date: Mon, 22 Nov 2010 22:59:59 +0000 (+0100) Subject: openldap: use remote port in URL passed to ldap_init_fd() X-Git-Tag: curl-7_21_3~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d212fe43af25b9d550cf7e84b24374a3ea120808;p=curl openldap: use remote port in URL passed to ldap_init_fd() ... not the proxy port. It makes no difference unless a proxy is used. --- 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) {