]> git.sur5r.net Git - openldap/commitdiff
Unescape host:port when parsing a host list.
authorMark Valence <mrv@openldap.org>
Sat, 11 Dec 1999 03:46:07 +0000 (03:46 +0000)
committerMark Valence <mrv@openldap.org>
Sat, 11 Dec 1999 03:46:07 +0000 (03:46 +0000)
libraries/libldap/url.c

index 3a4dcbd503a6dcc6557d977dc78c645f65dc8c6f..a4309bfcf621b67c39b50cf2b4e3651fc5ee2420 100644 (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;