From: Ondřej Kuzník Date: Tue, 28 Mar 2023 13:48:41 +0000 (+0100) Subject: ITS#10032 Use the correct ocs field X-Git-Tag: OPENLDAP_REL_ENG_2_5_15~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fedf31421a09fc39ea493581f50ec1e9612d2ee;p=thirdparty%2Fopenldap.git ITS#10032 Use the correct ocs field --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 726eaeb073..2b947e433c 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -3841,8 +3841,8 @@ pc_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca ) /* 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, + if ( cm->db.be_cf_ocs ) + config_build_entry( op, rs, pe, ca, &bv, cm->db.be_cf_ocs, &pcocs[1] ); return 0; diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index 2d31bb0fce..09b12dc18b 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -176,9 +176,9 @@ translucent_cfadd( Operation *op, SlapReply *rs, Entry *e, ConfigArgs *ca ) /* We can only create this entry if the database is table-driven */ - if ( ov->db.bd_info->bi_cf_ocs ) + if ( ov->db.be_cf_ocs ) config_build_entry( op, rs, cei, ca, &bv, - ov->db.bd_info->bi_cf_ocs, + ov->db.be_cf_ocs, &translucentocs[1] ); return 0;