From 1075efabc73ef9e890fdb7a53b15cabf467c6a9b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 26 Dec 2011 12:13:21 +1100 Subject: s3-auth Add TALLOC_CTX * to auth_generic_prepare() This makes the long term owner of this memory more clear. So far only the clear cases have been moved from NULL however. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/auth/auth_generic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/auth/auth_generic.c') diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c index 9b65f24e73..34a499895e 100644 --- a/source3/auth/auth_generic.c +++ b/source3/auth/auth_generic.c @@ -31,14 +31,15 @@ #include "librpc/rpc/dcerpc.h" #include "lib/param/param.h" -NTSTATUS auth_generic_prepare(const struct tsocket_address *remote_address, +NTSTATUS auth_generic_prepare(TALLOC_CTX *mem_ctx, + const struct tsocket_address *remote_address, struct auth_generic_state **auth_ntlmssp_state) { struct auth_context *auth_context; struct auth_generic_state *ans; NTSTATUS nt_status; - ans = talloc_zero(NULL, struct auth_generic_state); + ans = talloc_zero(mem_ctx, struct auth_generic_state); if (!ans) { DEBUG(0,("auth_ntlmssp_start: talloc failed!\n")); return NT_STATUS_NO_MEMORY; -- cgit