From c0faf75a90f4748e29bcfaad6ff917278afb0650 Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Sat, 11 Dec 1999 03:46:07 +0000 Subject: [PATCH] Unescape host:port when parsing a host list. --- libraries/libldap/url.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5