summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-10-23 15:10:20 +0200
committerStefan Metzmacher <metze@samba.org>2009-10-24 11:59:13 +0200
commit5ae1d700ebf4b6bb63128f50c01ce4365b4e8d94 (patch)
tree71944756740d56bd8d4896b9f6863e42b7aa3609 /libcli/auth
parent3054fe46d9ae970c4bd3bac306bfe664fc5a34ff (diff)
downloadsamba-5ae1d700ebf4b6bb63128f50c01ce4365b4e8d94.tar.gz
samba-5ae1d700ebf4b6bb63128f50c01ce4365b4e8d94.tar.bz2
samba-5ae1d700ebf4b6bb63128f50c01ce4365b4e8d94.zip
libcli/auth: don't leak the ldb_msg in schannel_store_session_key_ldb()
metze
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/schannel_state_ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/auth/schannel_state_ldb.c b/libcli/auth/schannel_state_ldb.c
index 62873a424b..161c5378ea 100644
--- a/libcli/auth/schannel_state_ldb.c
+++ b/libcli/auth/schannel_state_ldb.c
@@ -95,7 +95,7 @@ NTSTATUS schannel_store_session_key_ldb(struct ldb_context *ldb,
return NT_STATUS_NO_MEMORY;
}
- msg = ldb_msg_new(ldb);
+ msg = ldb_msg_new(mem_ctx);
if (msg == NULL) {
return NT_STATUS_NO_MEMORY;
}