Otherwise callers like dsdb_schema_copy_shallow() will corrupt the
talloc hierarchie.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
{
struct dsdb_class *c2;
+ schema_class->possibleInferiors = NULL;
+
for (c2=schema->classes; c2; c2=c2->next) {
const char **superiors = schema_posssuperiors(schema, c2);
if (c2->systemOnly == false
{
struct dsdb_class *c2;
+ schema_class->systemPossibleInferiors = NULL;
+
for (c2=schema->classes; c2; c2=c2->next) {
const char **superiors = schema_posssuperiors(schema, c2);
if (c2->objectClassCategory != 2