]> 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:02:48 +0000 (19:02 +0000)
servers/slapd/syncrepl.c

index 7749c31519b3f422dd46f1bcd0b3113fb59322a5..5fceb63dcae67924631331ad00407df7f8e95910 100644 (file)
@@ -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;
 }