]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#3882
authorLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 13:19:38 +0000 (13:19 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 13:19:38 +0000 (13:19 +0000)
servers/slapd/backend.c

index 34d004d6629134dfc920a454d1d45d5c90423a63..95ae72d7828713c273896b462e29fdd6330858b9 100644 (file)
@@ -1637,11 +1637,10 @@ fe_aux_operational(
        {
                /* Let the overlays have a chance at this */
                be_orig = op->o_bd;
-               if ( SLAP_ISOVERLAY( be_orig ) )
-                       op->o_bd = select_backend( be_orig->be_nsuffix, 0, 0 );
+               op->o_bd = select_backend( &op->o_ndn, 0, 0 );
 
                if ( ( SLAP_OPATTRS( rs->sr_attr_flags ) || rs->sr_attrs ) &&
-                       op->o_bd && op->o_bd->be_operational != NULL )
+                       op->o_bd != NULL && op->o_bd->be_operational != NULL )
                {
                        rc = op->o_bd->be_operational( op, rs );
                }