mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:47:15 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue