]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9868 also fixup glue_sub_del()
authorHoward Chu <hyc@openldap.org>
Wed, 22 Jun 2022 13:50:58 +0000 (14:50 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 23 Jun 2022 18:50:21 +0000 (18:50 +0000)
servers/slapd/backglue.c

index 6f8d3324bcd5141bab307470bbbd5c42ec5cdcf8..3183f2f46ea7006d236ab0f79f3d59dd465b6861 100644 (file)
@@ -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;