From: Howard Chu Date: Tue, 13 Jul 2021 11:10:28 +0000 (+0100) Subject: ITS#9608 fix delete of nonexistent sessionlog X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db23304b186f55acd7eb313d30fd8508d7a46283;p=thirdparty%2Fopenldap.git ITS#9608 fix delete of nonexistent sessionlog --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 60d196ec11..a224cde35b 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -3161,7 +3161,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;