From: Howard Chu Date: Wed, 7 Feb 2024 17:02:52 +0000 (+0000) Subject: ITS#10170 accesslog: skip response if not fully initialized yet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af877238e95252a31ec8076fa1069a0778db795b;p=thirdparty%2Fopenldap.git ITS#10170 accesslog: skip response if not fully initialized yet --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 589673dc4e..0d784fcd84 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1589,7 +1589,7 @@ accesslog_response(Operation *op, SlapReply *rs) lo = logops+logop+EN_OFFSET; /* can't do anything if logDB isn't open */ - if ( !SLAP_DBOPEN( li->li_db ) ) { + if ( !li->li_db || !SLAP_DBOPEN( li->li_db ) ) { goto skip; }