Skip to content
Snippets Groups Projects
Commit 17eb2027 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Unhex url extensions.

parent 5f53b747
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
LDAPURLDesc *ludp;
char *p, *q;
int enclosed, ldaps;
int i, enclosed, ldaps;
const char *url_tmp;
char *url;
......@@ -402,6 +402,17 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
return LDAP_URL_ERR_BADEXTS;
}
for( i=0; ludp->lud_exts[i] != NULL; i++ ) {
hex_unescape( ludp->lud_exts[i] );
}
if( i == 0 ) {
ldap_charray_free( ludp->lud_exts );
LDAP_FREE( url );
ldap_free_urldesc( ludp );
return LDAP_URL_ERR_BADEXTS;
}
*ludpp = ludp;
LDAP_FREE( url );
......
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