From: Mark Valence Date: Sat, 11 Dec 1999 03:46:07 +0000 (+0000) Subject: Unescape host:port when parsing a host list. X-Git-Tag: UCDATA_2_4~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0faf75a90f4748e29bcfaad6ff917278afb0650;p=openldap Unescape host:port when parsing a host list. --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 3a4dcbd503..a4309bfcf6 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -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;