]> git.sur5r.net Git - openldap/commitdiff
fix operational attributes collection (ITS#3882)
authorPierangelo Masarati <ando@openldap.org>
Mon, 25 Jul 2005 21:57:20 +0000 (21:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 25 Jul 2005 21:57:20 +0000 (21:57 +0000)
servers/slapd/backend.c

index 6cb351feacb1f955229fa8b964c6f516eb85d14c..cd32557290570303839b865e0fbb179ceeaebdd7 100644 (file)
@@ -1634,13 +1634,13 @@ fe_aux_operational(
                ap = &(*ap)->a_next;
        }
 
-       if ( op->o_bd != NULL && op->o_bd != frontendDB )
+       if ( op->o_bd != NULL )
        {
                /* Let the overlays have a chance at this */
                be_orig = op->o_bd;
-               op->o_bd = select_backend( &op->o_ndn, 0, 0 );
-
-               if ( ( SLAP_OPATTRS( rs->sr_attr_flags ) || rs->sr_attrs ) &&
+               op->o_bd = select_backend( &op->o_req_ndn, 0, 0 );
+               if ( op->o_bd != frontendDB &&
+                       ( SLAP_OPATTRS( rs->sr_attr_flags ) || rs->sr_attrs ) &&
                        op->o_bd != NULL && op->o_bd->be_operational != NULL )
                {
                        rc = op->o_bd->be_operational( op, rs );