From 6ee0d866c2d7dbdede8511fb906c10f6118fa87d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 15:35:44 -0700 Subject: s3: Lift talloc_autofree_context() from make_auth_context_fixed() --- source3/auth/auth.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/auth/auth.c') 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; } -- cgit