diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-11-04 14:29:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-11-04 17:13:01 +0100 |
commit | a94fbb9ed592103b55d803497f6fc483e828dc1f (patch) | |
tree | ddb1f68410d787282a0c646b54103d6beac1ee52 /source4/dsdb/common | |
parent | e3276b3ab369207ae88fdd78fbb42d34f0b83f3d (diff) | |
download | samba-a94fbb9ed592103b55d803497f6fc483e828dc1f.tar.gz samba-a94fbb9ed592103b55d803497f6fc483e828dc1f.tar.bz2 samba-a94fbb9ed592103b55d803497f6fc483e828dc1f.zip |
s4:dsdb/common: fix memory leak in samdb_ntds_settings_dn()
fetch and set should use the same name!
metze
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |