summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr/samdb.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-24 07:28:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:10 -0500
commit1954070a7e212cea26f36db5cc6772951327a64e (patch)
tree10ba154027bacf89342f8a5f3a55a171824ed75e /source4/rpc_server/samr/samdb.c
parent4f2058175e8763a7ed4066f16e934779506d7035 (diff)
downloadsamba-1954070a7e212cea26f36db5cc6772951327a64e.tar.gz
samba-1954070a7e212cea26f36db5cc6772951327a64e.tar.bz2
samba-1954070a7e212cea26f36db5cc6772951327a64e.zip
r2592: this fixes one of the security memory leaks in the server
(This used to be commit efb2b88edddef94ecbaa9a871d457d0d7c177546)
Diffstat (limited to 'source4/rpc_server/samr/samdb.c')
-rw-r--r--source4/rpc_server/samr/samdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c
index ac78dc60c7..f1302c1259 100644
--- a/source4/rpc_server/samr/samdb.c
+++ b/source4/rpc_server/samr/samdb.c
@@ -77,7 +77,7 @@ void *samdb_connect(TALLOC_CTX *mem_ctx)
ldb_set_debug(static_sam_db, samdb_debug, NULL);
- ctx = talloc_p(NULL, struct samdb_context);
+ ctx = talloc_p(mem_ctx, struct samdb_context);
if (!ctx) {
errno = ENOMEM;
return NULL;