]> git.sur5r.net Git - openldap/commitdiff
make frontend-generated attrs available to backend's hook
authorPierangelo Masarati <ando@openldap.org>
Mon, 31 Jan 2005 00:14:00 +0000 (00:14 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 31 Jan 2005 00:14:00 +0000 (00:14 +0000)
servers/slapd/backend.c
servers/slapd/overlays/rwm.c

index 546b74984d3eab2b7d8e42c829a199137a97a02a..daaf2454397826605978ef0564331bfd818314de 100644 (file)
@@ -1809,18 +1809,7 @@ int backend_operational(
        if (( SLAP_OPATTRS( rs->sr_attr_flags ) || rs->sr_attrs ) &&
                op->o_bd && op->o_bd->be_operational != NULL )
        {
-               Attribute       *a;
-               
-               a = rs->sr_operational_attrs;
-               rs->sr_operational_attrs = NULL;
                rc = op->o_bd->be_operational( op, rs );
-               *ap = rs->sr_operational_attrs;
-               if ( a != NULL ) {
-                       rs->sr_operational_attrs = a;
-               }
-
-               for ( ; *ap; ap = &(*ap)->a_next )
-                       /* just count them */ ;
        }
        op->o_bd = be_orig;
 
index 10aeea9736815790bdae1a7d9a05b54816f2dfe2..00227172c6c4db13531027568fcdc80d37acff28 100644 (file)
@@ -1033,9 +1033,11 @@ rwm_send_entry( Operation *op, SlapReply *rs )
         * to return, and remap them accordingly */
        (void)rwm_attrs( op, rs, &e->e_attrs, 1 );
 
+#if 0
        if ( rs->sr_operational_attrs ) {
                (void)rwm_attrs( op, rs, &rs->sr_operational_attrs, 0 );
        }
+#endif
 
        rs->sr_entry = e;
        rs->sr_flags = flags;