make frontend-generated attrs available to backend's hook

This commit is contained in:
Pierangelo Masarati 2005-01-31 00:14:00 +00:00
parent 4c61b9a8f7
commit d503b5a5b7
2 changed files with 2 additions and 11 deletions

View 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;

View 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;