summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-06-20 23:31:43 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-06-21 02:57:56 +0300
commit3aa8853f58b32c5430cd03164a0c2bc26c1b04c0 (patch)
treed460e2335c1e2fa68d7e630f05a391308ad5c26b
parentcc7e2c10f2b944fd7eac4ff11e9d48fac0043030 (diff)
downloadsamba-3aa8853f58b32c5430cd03164a0c2bc26c1b04c0.tar.gz
samba-3aa8853f58b32c5430cd03164a0c2bc26c1b04c0.tar.bz2
samba-3aa8853f58b32c5430cd03164a0c2bc26c1b04c0.zip
s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context
-rw-r--r--source4/dsdb/schema/schema_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index c9d6356804..0e04f5b35e 100644
--- a/source4/dsdb/schema/schema_set.c
+++ b/source4/dsdb/schema/schema_set.c
@@ -83,7 +83,7 @@ static int dsdb_schema_set_attributes(struct ldb_context *ldb, struct dsdb_schem
ldb_oom(ldb);
goto op_error;
}
- msg_idx->dn = ldb_dn_new(msg, ldb, "@INDEXLIST");
+ msg_idx->dn = ldb_dn_new(msg_idx, ldb, "@INDEXLIST");
if (!msg_idx->dn) {
ldb_oom(ldb);
goto op_error;