1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s4:dsdb/common: fix memory leak in samdb_ntds_settings_dn()

fetch and set should use the same name!

metze
This commit is contained in:
Stefan Metzmacher 2010-11-04 14:29:12 +01:00
parent e3276b3ab3
commit a94fbb9ed5

View File

@ -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;
}