From: Ondřej Kuzník Date: Mon, 30 Jan 2023 12:06:24 +0000 (+0000) Subject: ITS#8102 Do not continue if deconfigured during pause X-Git-Tag: OPENLDAP_REL_ENG_2_5_14~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6733fe4d9602772724f1f8e56b63b29dff6607fa;p=thirdparty%2Fopenldap.git ITS#8102 Do not continue if deconfigured during pause --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 7749c31519..5fceb63dca 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1292,6 +1292,10 @@ get_pmutex( ldap_pvt_thread_yield(); } } + if ( si->si_ctype < 0 ) { + ldap_pvt_thread_mutex_unlock( &si->si_cookieState->cs_pmutex ); + return SYNC_SHUTDOWN; + } return 0; }