diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-12-26 12:13:21 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-05 17:17:28 +0100 |
commit | 1075efabc73ef9e890fdb7a53b15cabf467c6a9b (patch) | |
tree | 9650b14e43f168f062d26a4f61029d67f16725f7 /source3/auth | |
parent | c579b735d6e5ba5345ae8e26477ab13c2646c84a (diff) | |
download | samba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.tar.gz samba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.tar.bz2 samba-1075efabc73ef9e890fdb7a53b15cabf467c6a9b.zip |
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 <metze@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_generic.c | 5 | ||||
-rw-r--r-- | source3/auth/proto.h | 2 |
2 files changed, 4 insertions, 3 deletions
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; diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 074da79a05..31271da3e5 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -69,7 +69,7 @@ NTSTATUS auth_netlogond_init(void); /* The following definitions come from auth/auth_ntlmssp.c */ -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); NTSTATUS auth_generic_start(struct auth_generic_state *auth_ntlmssp_state, const char *oid); NTSTATUS auth_generic_authtype_start(struct auth_generic_state *auth_ntlmssp_state, |