mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix rev 1.266, was creating {0}config entry prematurely.
This commit is contained in:
parent
d3531c6d79
commit
89c6b39738
@ -5943,6 +5943,7 @@ config_tool_entry_put( BackendDB *be, Entry *e, struct berval *text )
|
||||
Connection conn = {0};
|
||||
Operation *op = NULL;
|
||||
void *thrctx;
|
||||
int isFrontend = 0;
|
||||
|
||||
/* Create entry for frontend database if it does not exist already */
|
||||
if ( !entry_put_got_frontend ) {
|
||||
@ -5992,11 +5993,12 @@ config_tool_entry_put( BackendDB *be, Entry *e, struct berval *text )
|
||||
}
|
||||
} else {
|
||||
entry_put_got_frontend++;
|
||||
isFrontend = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Create entry for config database if it does not exist already */
|
||||
if ( !entry_put_got_config ) {
|
||||
if ( !entry_put_got_config && !isFrontend ) {
|
||||
if ( !strncmp( e->e_nname.bv_val, "olcDatabase",
|
||||
STRLENOF( "olcDatabase" ))) {
|
||||
if ( strncmp( e->e_nname.bv_val +
|
||||
|
Loading…
Reference in New Issue
Block a user