]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10170 accesslog: skip response if not fully initialized yet
authorHoward Chu <hyc@openldap.org>
Wed, 7 Feb 2024 17:02:52 +0000 (17:02 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 15 Feb 2024 18:05:37 +0000 (18:05 +0000)
servers/slapd/overlays/accesslog.c

index 182be57cc6d22bdf38f64d97ff27d5424427dd46..d2a42473a529a0b20af4c0d25fde5ac11b9b087b 100644 (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;
        }