From: Matthias Dieter Wallnöfer Date: Mon, 3 May 2010 15:15:25 +0000 (+0200) Subject: s4:LogonGetDomainInfo - fix a potential crash source X-Git-Tag: samba-3.6.0pre1~2289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e35df3f5acd959d009f618f7bb00a6f18b4e19;p=thirdparty%2Fsamba.git s4:LogonGetDomainInfo - fix a potential crash source --- diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index 576464809e4..3842429b8e7 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