diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-03 17:15:25 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-03 17:25:03 +0200 |
commit | a4e35df3f5acd959d009f618f7bb00a6f18b4e19 (patch) | |
tree | 8a88c3e63971335c94b3b5d2ed5744deba89ae41 /source4 | |
parent | e8a001c51617cc19a2d8fc7d7f86093e6e92952c (diff) | |
download | samba-a4e35df3f5acd959d009f618f7bb00a6f18b4e19.tar.gz samba-a4e35df3f5acd959d009f618f7bb00a6f18b4e19.tar.bz2 samba-a4e35df3f5acd959d009f618f7bb00a6f18b4e19.zip |
s4:LogonGetDomainInfo - fix a potential crash source
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |