mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Unescape host:port when parsing a host list.
This commit is contained in:
parent
a76c9f18a9
commit
c0faf75a90
1 changed files with 2 additions and 0 deletions
|
|
@ -563,8 +563,10 @@ ldap_url_parsehosts (LDAPURLDesc **ludlist, const char *hosts )
|
|||
p = strchr(ludp->lud_host, ':');
|
||||
if (p != NULL) {
|
||||
*p++ = 0;
|
||||
ldap_pvt_hex_unescape(p);
|
||||
ludp->lud_port = atoi(p);
|
||||
}
|
||||
ldap_pvt_hex_unescape(ludp->lud_host);
|
||||
ludp->lud_ldaps = -1; /* unknown (use TLS default) */
|
||||
ludp->lud_next = *ludlist;
|
||||
*ludlist = ludp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue