summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 15:35:44 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 01:12:37 +0200
commit6ee0d866c2d7dbdede8511fb906c10f6118fa87d (patch)
treed4ff03c45e7f1b579ab83df33298d610ef79a4d5 /source3/auth
parent242e3296108f513b286787ac12ea768b9c4ed954 (diff)
downloadsamba-6ee0d866c2d7dbdede8511fb906c10f6118fa87d.tar.gz
samba-6ee0d866c2d7dbdede8511fb906c10f6118fa87d.tar.bz2
samba-6ee0d866c2d7dbdede8511fb906c10f6118fa87d.zip
s3: Lift talloc_autofree_context() from make_auth_context_fixed()
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 4eb0845ba0..790bfaca23 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -538,11 +538,12 @@ NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
Make a auth_info struct with a fixed challenge
***************************************************************************/
-NTSTATUS make_auth_context_fixed(struct auth_context **auth_context, uchar chal[8])
+NTSTATUS make_auth_context_fixed(TALLOC_CTX *mem_ctx,
+ struct auth_context **auth_context,
+ uchar chal[8])
{
NTSTATUS nt_status;
- nt_status = make_auth_context_subsystem(talloc_autofree_context(),
- auth_context);
+ nt_status = make_auth_context_subsystem(mem_ctx, auth_context);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}