mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#10145 ldap_url_parse_ext: fail earlier on bad URL enclosure
This commit is contained in:
parent
4c80d78dcc
commit
e40d3640a7
1 changed files with 4 additions and 0 deletions
|
|
@ -867,6 +867,10 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp, unsigned flags
|
|||
}
|
||||
|
||||
if ( enclosed ) {
|
||||
if ( ! *url ) {
|
||||
LDAP_FREE( url );
|
||||
return LDAP_URL_ERR_BADENCLOSURE;
|
||||
}
|
||||
p = &url[strlen(url)-1];
|
||||
|
||||
if( *p != '>' ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue