mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
Fix undefined substring filters
This commit is contained in:
parent
8d8a52f9d2
commit
6b524914c5
1 changed files with 8 additions and 1 deletions
|
|
@ -278,6 +278,7 @@ get_filter(
|
|||
|
||||
if( err != LDAP_SUCCESS && err != SLAPD_DISCONNECT ) {
|
||||
/* ignore error */
|
||||
*text = NULL;
|
||||
f.f_choice = SLAPD_FILTER_COMPUTED;
|
||||
f.f_result = SLAPD_COMPARE_UNDEFINED;
|
||||
err = LDAP_SUCCESS;
|
||||
|
|
@ -372,7 +373,13 @@ get_ssa(
|
|||
rc = slap_bv2ad( &desc, &ssa.sa_desc, text );
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_SUCCESS;
|
||||
/* skip over the rest of this filter */
|
||||
for ( tag = ber_first_element( ber, &len, &last );
|
||||
tag != LBER_DEFAULT;
|
||||
tag = ber_next_element( ber, &len, last ) ) {
|
||||
ber_scanf( ber, "x" );
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = LDAP_PROTOCOL_ERROR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue