Unescape host:port when parsing a host list.

This commit is contained in:
Mark Valence 1999-12-11 03:46:07 +00:00
parent a76c9f18a9
commit c0faf75a90

View file

@ -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;