]> 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 19:37:49 +0000 (19:37 +0000)
servers/slapd/overlays/accesslog.c

index 30d77dd25ddb4744fac7721af275b1d262fcc6de..557154ce36ccca9111205c4c73573f3a93481e3e 100644 (file)
@@ -2044,7 +2044,7 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
                return SLAP_CB_CONTINUE;
 
        /* can't do anything if logDB isn't open */
-       if ( !SLAP_DBOPEN( li->li_db ))
+       if ( !li->li_db || !SLAP_DBOPEN( li->li_db ))
                return SLAP_CB_CONTINUE;
        
        logop = accesslog_op2logop( op );