dsdb: Do not store a struct ldb_dn in struct schema_data
authorAndrew Bartlett <abartlet@samba.org>
Fri, 23 May 2014 04:06:17 +0000 (16:06 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:15 +0000 (12:46 +0200)
commitf72899ec2bc0ad3f6cd1e3d586235543b51f7cd1
tree1a68b5d71b7db5f49ec832bf73ba46919e1d3c12
parent4730d74e38998aaeadbe13682cc6462c3ceb4766
dsdb: Do not store a struct ldb_dn in struct schema_data

The issue is that the DN contains a pointer to the ldb it belongs to,
and if this is not kept around long enough, we might reference memory
after it is de-allocated.

Andrew Bartlett

Change-Id: I040a6c37a3164b3309f370e32e598dd56b1a1bbb
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 8327321225251e312ccbd06bbefa5ebf98099f34)
source4/dsdb/repl/drepl_out_helpers.c
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/ldb_modules/samldb.c
source4/dsdb/samdb/ldb_modules/schema_data.c
source4/dsdb/samdb/ldb_modules/schema_load.c
source4/dsdb/schema/schema.h
source4/dsdb/schema/schema_init.c
source4/dsdb/schema/schema_set.c
source4/libnet/libnet_vampire.c