s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context
authorKamen Mazdrashki <kamenim@samba.org>
Sun, 20 Jun 2010 20:31:43 +0000 (23:31 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Sun, 20 Jun 2010 23:57:56 +0000 (02:57 +0300)
source4/dsdb/schema/schema_set.c

index c9d63568043139295e7e5446be92ee0e73426491..0e04f5b35eb16aaa7074e738f834c9efaf80bd9a 100644 (file)
@@ -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;