s3:smbd/smb2_getinfo add a debug message
authorChristian Ambach <ambi@samba.org>
Fri, 11 May 2012 17:03:32 +0000 (19:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 May 2012 08:45:22 +0000 (10:45 +0200)
like the ones in the other calls that check for max sizes

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_getinfo.c

index e8d918df388a3e44ee0db3b2d87a43622cbc91c3..0f5936524f377efa6d0e3a14c86f15877b56ac85 100644 (file)
@@ -91,9 +91,17 @@ NTSTATUS smbd_smb2_request_process_getinfo(struct smbd_smb2_request *req)
        in_input_buffer.length = in_input_buffer_length;
 
        if (in_input_buffer.length > req->sconn->smb2.max_trans) {
+               DEBUG(2,("smbd_smb2_request_process_getinfo: "
+                        "client ignored max trans: %s: 0x%08X: 0x%08X\n",
+                        __location__, in_input_buffer.length,
+                        req->sconn->smb2.max_trans));
                return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
        }
        if (in_output_buffer_length > req->sconn->smb2.max_trans) {
+               DEBUG(2,("smbd_smb2_request_process_getinfo: "
+                        "client ignored max trans: %s: 0x%08X: 0x%08X\n",
+                        __location__, in_output_buffer_length,
+                        req->sconn->smb2.max_trans));
                return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
        }