mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
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:
parent
13d537e404
commit
d212fe43af
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user