computed_attr_context ctx;
AttributeName *anp;
#endif
- void *mark = NULL;
-
AttributeDescription *ad_entry = slap_schema.si_ad_entry;
/* a_flags: array of flags telling if the i-th element will be
op->ors_attrsonly ? " (attrsOnly)" : "", 0 );
#endif
- mark = sl_mark( op->o_tmpmemctx );
-
if ( !access_allowed( op, rs->sr_entry, ad_entry, NULL, ACL_READ, NULL )) {
#ifdef NEW_LOGGING
LDAP_LOG( ACL, INFO,
rs->sr_flags &= ~REP_ENTRY_MUSTBEFREED;
}
- sl_release( mark, op->o_tmpmemctx );
if ( e_flags ) sl_free( e_flags, op->o_tmpmemctx );
return( rc );
BerElement *ber = (BerElement *) &berbuf;
int rc = 0;
int bytes;
- void *mark;
AttributeDescription *ad_ref = slap_schema.si_ad_ref;
AttributeDescription *ad_entry = slap_schema.si_ad_entry;
if ( rc != SLAP_CB_CONTINUE ) return rc;
}
- mark = sl_mark( op->o_tmpmemctx );
-
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY,
"send_search_reference: conn %lu dn=\"%s\"\n",
"send_search_reference: access to entry not allowed\n",
0, 0, 0 );
#endif
- rc = 1;
- goto rel;
+ return 1;
}
if ( rs->sr_entry && ! access_allowed( op, rs->sr_entry,
"to reference not allowed\n",
0, 0, 0 );
#endif
- rc = 1;
- goto rel;
+ return 1;
}
#ifdef LDAP_CONTROL_X_DOMAIN_SCOPE
"send_search_reference: domainScope control in (%s)\n",
rs->sr_entry->e_dn, 0, 0 );
#endif
- rc = 0;
- goto rel;
+ return 0;
}
#endif
"send_search_reference: null ref in (%s)\n",
rs->sr_entry ? rs->sr_entry->e_dn : "(null)", 0, 0 );
#endif
- rc = 1;
- goto rel;
+ return 1;
}
if( op->o_protocol < LDAP_VERSION3 ) {
if( value_add( &rs->sr_v2ref, rs->sr_ref ) )
return LDAP_OTHER;
}
- rc = 0;
- goto rel;
+ return 0;
}
#ifdef LDAP_CONNECTIONLESS
#endif
ber_free_buf( ber );
send_ldap_error( op, rs, LDAP_OTHER, "encode DN error" );
- goto rel;
+ return rc;
}
#ifdef LDAP_CONNECTIONLESS
Debug( LDAP_DEBUG_TRACE, "<= send_search_reference\n", 0, 0, 0 );
#endif
-rel:
- sl_release( mark, op->o_tmpmemctx );
return rc;
}