git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3276b3
)
s4:dsdb/common: fix memory leak in samdb_ntds_settings_dn()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Nov 2010 13:29:12 +0000
(14:29 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Nov 2010 16:13:01 +0000
(17:13 +0100)
fetch and set should use the same name!
metze
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index 39fcc4d49b2441497ec5f3a2e0423b7b806838b5..3fa6774acb5a05848a585c1ad7010804c246d311 100644
(file)
--- 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;
}