]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9608 fix delete of nonexistent sessionlog
authorHoward Chu <hyc@openldap.org>
Tue, 13 Jul 2021 11:10:28 +0000 (12:10 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Jul 2021 11:10:28 +0000 (12:10 +0100)
servers/slapd/overlays/syncprov.c

index 02ba327dee1edf43870611a3d04f0017f53a3df5..5eba1b3ff6fc14193493e648d8644a237022cba2 100644 (file)
@@ -3658,7 +3658,8 @@ sp_cf_gen(ConfigArgs *c)
                        si->si_chktime = 0;
                        break;
                case SP_SESSL:
-                       si->si_logs->sl_size = 0;
+                       if ( si->si_logs )
+                               si->si_logs->sl_size = 0;
                        break;
                case SP_NOPRES:
                        si->si_nopres = 0;