s3-auth: Simplify how we free the auth_context
authorSimo Sorce <idra@samba.org>
Fri, 16 Jul 2010 22:23:55 +0000 (18:23 -0400)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 19 Jul 2010 04:20:00 +0000 (14:20 +1000)
commite60ed80754f1f51c74bc338cc3a81d12f49d9687
treee6a68ce556399746cb05e0bdb3c7ff338cf00162
parente4bd6eb72fba92c0b0a3e5e636e5312629758bc1
s3-auth: Simplify how we free the auth_context

Turn the freeing function into a destructor and attach it to the
auth_context.
Make all callers TALLOC_FREE() the auth_context instead of calling
the free function.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth.c
source3/auth/auth_compat.c
source3/auth/auth_ntlmssp.c
source3/include/auth.h
source3/rpc_server/srv_netlog_nt.c
source3/smbd/negprot.c
source3/smbd/server_exit.c
source3/smbd/sesssetup.c