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/rpc_server | |
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/rpc_server')
-rw-r--r-- | source3/rpc_server/dcesrv_auth_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/dcesrv_auth_generic.c b/source3/rpc_server/dcesrv_auth_generic.c index 73737c24b7..dee3c16ca3 100644 --- a/source3/rpc_server/dcesrv_auth_generic.c +++ b/source3/rpc_server/dcesrv_auth_generic.c @@ -38,7 +38,7 @@ NTSTATUS auth_generic_server_start(TALLOC_CTX *mem_ctx, struct auth_generic_state *a = NULL; NTSTATUS status; - status = auth_generic_prepare(remote_address, &a); + status = auth_generic_prepare(talloc_tos(), remote_address, &a); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, (__location__ ": auth_generic_prepare failed: %s\n", nt_errstr(status))); @@ -92,7 +92,7 @@ NTSTATUS auth_generic_server_authtype_start(TALLOC_CTX *mem_ctx, struct auth_generic_state *a = NULL; NTSTATUS status; - status = auth_generic_prepare(remote_address, &a); + status = auth_generic_prepare(talloc_tos(), remote_address, &a); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, (__location__ ": auth_generic_prepare failed: %s\n", nt_errstr(status))); |