]> 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)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Feb 2024 17:02:52 +0000 (17:02 +0000)
servers/slapd/overlays/accesslog.c

index 589673dc4e55730b091af08311d5e9498c08a810..0d784fcd8477230412237f80577db8ffe4a48905 100644 (file)
@@ -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;
        }