From a94fbb9ed592103b55d803497f6fc483e828dc1f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 4 Nov 2010 14:29:12 +0100 Subject: s4:dsdb/common: fix memory leak in samdb_ntds_settings_dn() fetch and set should use the same name! metze --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 39fcc4d49b..3fa6774acb 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1383,7 +1383,7 @@ struct ldb_dn *samdb_ntds_settings_dn(struct ldb_context *ldb) settings_dn = ldb_msg_find_attr_as_dn(ldb, tmp_ctx, root_res->msgs[0], "dsServiceName"); /* cache the domain_sid in the ldb */ - if (ldb_set_opaque(ldb, "cache.settings_dn", settings_dn) != LDB_SUCCESS) { + if (ldb_set_opaque(ldb, "cache.ntds_settings_dn", settings_dn) != LDB_SUCCESS) { goto failed; } -- cgit