summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-04-07 10:42:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-04-10 21:41:00 +1000
commit4b27cc0ea6e829c316da1ee87de180ff8de88fc5 (patch)
treeee384b6611c2e0d3822b5ae88b2c2d92d6ac6a41
parentbc6659936a4719a30d1f289bca7dbe639cb972cf (diff)
downloadsamba-4b27cc0ea6e829c316da1ee87de180ff8de88fc5.tar.gz
samba-4b27cc0ea6e829c316da1ee87de180ff8de88fc5.tar.bz2
samba-4b27cc0ea6e829c316da1ee87de180ff8de88fc5.zip
s4:rpc_server Fix segfault in modified SamLogon handling
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index f7df8e9452..cdc9967c92 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -653,6 +653,7 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base(struct dcesrv_call_state *dce_cal
sam6 = talloc_zero(mem_ctx, struct netr_SamInfo6);
NT_STATUS_HAVE_NO_MEMORY(sam6);
sam6->base = sam3->base;
+ sam = &sam6->base;
sam6->sidcount = sam3->sidcount;
sam6->sids = sam3->sids;