if ( BER_BVISNULL( &op->o_ndn ) ) {
/* set to root DN */
be = select_backend( &op->o_req_ndn, 0, 0 );
- assert( be != NULL );
- ber_dupbv( &op->o_dn, &be->be_rootdn );
- ber_dupbv( &op->o_ndn, &be->be_rootndn );
+ if ( be != NULL ) {
+ ber_dupbv( &op->o_dn, &be->be_rootdn );
+ ber_dupbv( &op->o_ndn, &be->be_rootndn );
+ }
}
}
func = &pb->pop->o_bd->be_bind;
- rc = func[which]( pb->pop, &pb->rs );
-
- return rc;
+ return func[which]( pb->pop, &pb->rs );
}
int
static int slapi_over_cleanup( Operation *op, SlapReply *rs );
static Slapi_PBlock *
-slapi_over_pblock_new ( Operation *op )
+slapi_over_pblock_new( Operation *op )
{
Slapi_PBlock *pb;
pb = slapi_pblock_new();
- if ( pb == NULL ) {
- return NULL;
- }
-
pb->pop = op;
pb->pconn = op->o_conn;
pb->internal_op = 0;
- PBLOCK_ASSERT_OP( pb, 0 );
+ PBLOCK_ASSERT_OP( pb, op->o_tag );
return pb;
}