From: Howard Chu Date: Wed, 22 Jun 2022 13:50:58 +0000 (+0100) Subject: ITS#9868 also fixup glue_sub_del() X-Git-Tag: OPENLDAP_REL_ENG_2_5_13~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e41e55cecdb865e2b1982bdd657b62c44c5d24ac;p=thirdparty%2Fopenldap.git ITS#9868 also fixup glue_sub_del() --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 6f8d3324bc..3183f2f46e 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -1381,6 +1381,11 @@ glue_sub_del( BackendDB *b0 ) gi->gi_nodes--; } } + /* Mark as no longer linked/sub */ + b0->be_flags &= ~(SLAP_DBFLAG_GLUE_SUBORDINATE|SLAP_DBFLAG_GLUE_LINKED| + SLAP_DBFLAG_GLUE_ADVERTISE); + b0->be_pcsn_p = &b0->be_pcsn_st; + break; } if ( be == NULL ) rc = LDAP_NO_SUCH_OBJECT;