]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8102 Do not continue if deconfigured during pause
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 30 Jan 2023 12:06:24 +0000 (12:06 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 30 Jan 2023 19:01:00 +0000 (19:01 +0000)
servers/slapd/syncrepl.c

index 4b8f0b29fc72a7ed210319ffa05f439e1aa8896b..2c3cdfac566ff7a9f649e6764b95c41cd09d9aa1 100644 (file)
@@ -1294,6 +1294,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;
 }