mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix (temporary) crash on ldbm
This commit is contained in:
parent
b8bfb044d1
commit
f2e62ea04c
@ -1652,8 +1652,12 @@ pc_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca )
|
||||
bv.bv_len = sprintf( ca->msg, "olcDatabase=%s", cm->db.bd_info->bi_type );
|
||||
bv.bv_val = ca->msg;
|
||||
ca->be = &cm->db;
|
||||
config_build_entry( op, rs, pe, ca, &bv, cm->db.bd_info->bi_cf_ocs,
|
||||
&pcocs[1] );
|
||||
|
||||
/* We can only create this entry if the database is table-driven
|
||||
*/
|
||||
if ( cm->db.bd_info->bi_cf_ocs )
|
||||
config_build_entry( op, rs, pe, ca, &bv, cm->db.bd_info->bi_cf_ocs,
|
||||
&pcocs[1] );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user