mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Improve prev commit
This commit is contained in:
parent
8204cbc212
commit
4b75493252
@ -3438,7 +3438,7 @@ config_back_add( Operation *op, SlapReply *rs )
|
|||||||
slap_callback sc = { NULL, slap_null_cb, NULL, NULL };
|
slap_callback sc = { NULL, slap_null_cb, NULL, NULL };
|
||||||
op->o_bd = &cfb->cb_db;
|
op->o_bd = &cfb->cb_db;
|
||||||
/* FIXME: there must be a better way. */
|
/* FIXME: there must be a better way. */
|
||||||
if ( op->o_bd->be_rootndn.bv_val != be->be_rootndn.bv_val ) {
|
if ( ber_bvcmp( &op->o_bd->be_rootndn, &be->be_rootndn )) {
|
||||||
op->o_bd->be_rootdn = be->be_rootdn;
|
op->o_bd->be_rootdn = be->be_rootdn;
|
||||||
op->o_bd->be_rootndn= be->be_rootndn;
|
op->o_bd->be_rootndn= be->be_rootndn;
|
||||||
}
|
}
|
||||||
@ -3766,7 +3766,7 @@ config_back_modify( Operation *op, SlapReply *rs )
|
|||||||
BackendDB *be = op->o_bd;
|
BackendDB *be = op->o_bd;
|
||||||
slap_callback sc = { NULL, slap_null_cb, NULL, NULL };
|
slap_callback sc = { NULL, slap_null_cb, NULL, NULL };
|
||||||
op->o_bd = &cfb->cb_db;
|
op->o_bd = &cfb->cb_db;
|
||||||
if ( op->o_bd->be_rootndn.bv_val != be->be_rootndn.bv_val ) {
|
if ( ber_bvcmp( &op->o_bd->be_rootndn, &be->be_rootndn )) {
|
||||||
op->o_bd->be_rootdn = be->be_rootdn;
|
op->o_bd->be_rootdn = be->be_rootdn;
|
||||||
op->o_bd->be_rootndn= be->be_rootndn;
|
op->o_bd->be_rootndn= be->be_rootndn;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user