mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix backend_attribute trying to reference a NULL be. Neither backend_group
nor backend_attribute need to worry about the noSubs parameter of select_backend().
This commit is contained in:
parent
35554dadf3
commit
bad62d2167
@ -997,8 +997,7 @@ backend_group(
|
||||
if ( !dn_match( &target->e_nname, gr_ndn ) ) {
|
||||
/* we won't attempt to send it to a different backend */
|
||||
|
||||
be = select_backend( gr_ndn, 0,
|
||||
(be->be_flags & SLAP_BFLAG_GLUE_INSTANCE));
|
||||
be = select_backend( gr_ndn, 0, 0 );
|
||||
|
||||
if (be == NULL) {
|
||||
return LDAP_NO_SUCH_OBJECT;
|
||||
@ -1057,8 +1056,7 @@ backend_attribute(
|
||||
if ( target == NULL || !dn_match( &target->e_nname, edn ) ) {
|
||||
/* we won't attempt to send it to a different backend */
|
||||
|
||||
be = select_backend( edn, 0,
|
||||
(be->be_flags & SLAP_BFLAG_GLUE_INSTANCE));
|
||||
be = select_backend( edn, 0, 0 );
|
||||
|
||||
if (be == NULL) {
|
||||
return LDAP_NO_SUCH_OBJECT;
|
||||
|
Loading…
Reference in New Issue
Block a user