ITS#10170 accesslog: skip response if not fully initialized yet

This commit is contained in:
Howard Chu 2024-02-07 17:02:52 +00:00 committed by Quanah Gibson-Mount
parent dfa5d8a710
commit 68cba1f476

View File

@ -1567,7 +1567,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;
}