1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

dsdb-schema: make sure we build [system]PossibleInferiors completely

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>
This commit is contained in:
Stefan Metzmacher
2013-01-17 14:41:39 +01:00
parent 1f673bf920
commit c2853f55fc

View File

@ -202,6 +202,8 @@ static void schema_fill_possible_inferiors(const struct dsdb_schema *schema,
{
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
@ -223,6 +225,8 @@ static void schema_fill_system_possible_inferiors(const struct dsdb_schema *sche
{
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