summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-06-10 10:46:41 +0200
committerStefan Metzmacher <metze@samba.org>2013-06-11 11:40:39 +0200
commit3fba9ba7ea85e33faac2718d2463c5d0cd2d85f4 (patch)
tree712a15ab7d68c84b705ee6fda24d9cbb1af4e34a
parentd2f847149d3d1310c829169564704b45ac43e978 (diff)
downloadsamba-3fba9ba7ea85e33faac2718d2463c5d0cd2d85f4.tar.gz
samba-3fba9ba7ea85e33faac2718d2463c5d0cd2d85f4.tar.bz2
samba-3fba9ba7ea85e33faac2718d2463c5d0cd2d85f4.zip
dsdb: reset schema->{classes,attributes}_to_remove_size to 0
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jun 11 11:40:39 CEST 2013 on sn-devel-104
-rw-r--r--source4/dsdb/schema/schema_set.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index 73264f9545..ce8facbef3 100644
--- a/source4/dsdb/schema/schema_set.c
+++ b/source4/dsdb/schema/schema_set.c
@@ -338,8 +338,10 @@ int dsdb_setup_sorted_accessors(struct ldb_context *ldb,
TALLOC_FREE(schema->attributes_to_remove[i]);
}
- TALLOC_FREE(schema->attributes_to_remove);
TALLOC_FREE(schema->classes_to_remove);
+ schema->classes_to_remove_size = 0;
+ TALLOC_FREE(schema->attributes_to_remove);
+ schema->attributes_to_remove_size = 0;
/* free all caches */
dsdb_sorted_accessors_free(schema);