]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:LogonGetDomainInfo - fix a potential crash source
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 3 May 2010 15:15:25 +0000 (17:15 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 3 May 2010 15:25:03 +0000 (17:25 +0200)
source4/rpc_server/netlogon/dcerpc_netlogon.c

index 576464809e4a42eae751f0bf00582970249878d3..3842429b8e77543644c9b3194adddd821b268851 100644 (file)
@@ -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