mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Unhex url extensions.
This commit is contained in:
parent
5f53b747a5
commit
17eb202732
1 changed files with 12 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue