Skip to content
Snippets Groups Projects
Commit c0faf75a authored by Mark Valence's avatar Mark Valence
Browse files

Unescape host:port when parsing a host list.

parent a76c9f18
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment