From 272e49e85c47d88ef0a84bce88e6f8d984f2eae4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 4 May 2010 16:44:08 +1000 Subject: s4:auth Move struct auth_usersupplied_info to a common location This also changes the calling convention slightly - we should always allocate this with talloc_zero() to allow some elements to be optional. Some elements may only make sense in Samba3, which I hope will use this common structure. Andrew Bartlett --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source4/rpc_server/netlogon') diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index 226a0640bb..9d8195aaad 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -491,13 +491,9 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base(struct dcesrv_call_state *dce_cal struct netr_SamInfo3 *sam3; struct netr_SamInfo6 *sam6; - user_info = talloc(mem_ctx, struct auth_usersupplied_info); + user_info = talloc_zero(mem_ctx, struct auth_usersupplied_info); NT_STATUS_HAVE_NO_MEMORY(user_info); - user_info->flags = 0; - user_info->mapped_state = false; - user_info->remote_host = NULL; - switch (r->in.logon_level) { case NetlogonInteractiveInformation: case NetlogonServiceInformation: -- cgit