From a4e35df3f5acd959d009f618f7bb00a6f18b4e19 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 3 May 2010 17:15:25 +0200 Subject: s4:LogonGetDomainInfo - fix a potential crash source --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 ++++ 1 file changed, 4 insertions(+) (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 576464809e..3842429b8e 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -1257,6 +1257,10 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal switch (r->in.level) { case 1: /* Domain information */ + if (r->in.query->workstation_info == NULL) { + return NT_STATUS_INVALID_PARAMETER; + } + /* * Updates the DNS hostname when the client wishes that the * server should handle this for him -- cgit