mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Fix substring index error handling
This commit is contained in:
parent
6d5afc773a
commit
ef7883c028
1 changed files with 5 additions and 5 deletions
|
|
@ -482,24 +482,24 @@ substring_candidates(
|
|||
Debug( LDAP_DEBUG_ANY,
|
||||
"<= bdb_substring_candidates: index_param failed (%d)\n",
|
||||
rc, 0, 0 );
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
if ( db == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"<= bdb_substring_candidates not indexed\n",
|
||||
0, 0, 0 );
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
mr = sub->sa_desc->ad_type->sat_substr;
|
||||
|
||||
if( !mr ) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if( !mr->smr_filter ) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
rc = (mr->smr_filter)(
|
||||
|
|
@ -515,7 +515,7 @@ substring_candidates(
|
|||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<= bdb_substring_candidates: (%s) MR filter failed (%d)\n",
|
||||
sub->sa_desc->ad_cname.bv_val, rc, 0 );
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
if( keys == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue