summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_getinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-05-23 10:22:34 +0200
committerMichael Adam <obnox@samba.org>2014-08-06 09:51:11 +0200
commite79b011434445078621204ebe33fde7eb7f21faf (patch)
tree371feb15544f5f6d8411b3202fbbddcf0d86918b /source3/smbd/smb2_getinfo.c
parentce76a4095686334b8f97ae1378e92f869f4351c1 (diff)
downloadsamba-e79b011434445078621204ebe33fde7eb7f21faf.tar.gz
samba-e79b011434445078621204ebe33fde7eb7f21faf.tar.xz
samba-e79b011434445078621204ebe33fde7eb7f21faf.zip
s3:smb2_server: use xconn->smb2.server.max_* instead of sconn->smb2.max_*
We don't need this twice... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/smb2_getinfo.c')
-rw-r--r--source3/smbd/smb2_getinfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index ec6181a3b4..275792c041 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -44,6 +44,7 @@ static NTSTATUS smbd_smb2_getinfo_recv(struct tevent_req *req,
static void smbd_smb2_request_getinfo_done(struct tevent_req *subreq);
NTSTATUS smbd_smb2_request_process_getinfo(struct smbd_smb2_request *req)
{
+ struct smbXsrv_connection *xconn = req->sconn->conn;
NTSTATUS status;
const uint8_t *inbody;
uint8_t in_info_type;
@@ -90,18 +91,18 @@ NTSTATUS smbd_smb2_request_process_getinfo(struct smbd_smb2_request *req)
in_input_buffer.data = SMBD_SMB2_IN_DYN_PTR(req);
in_input_buffer.length = in_input_buffer_length;
- if (in_input_buffer.length > req->sconn->smb2.max_trans) {
+ if (in_input_buffer.length > xconn->smb2.server.max_trans) {
DEBUG(2,("smbd_smb2_request_process_getinfo: "
"client ignored max trans: %s: 0x%08X: 0x%08X\n",
__location__, (unsigned)in_input_buffer.length,
- (unsigned)req->sconn->smb2.max_trans));
+ (unsigned)xconn->smb2.server.max_trans));
return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
}
- if (in_output_buffer_length > req->sconn->smb2.max_trans) {
+ if (in_output_buffer_length > xconn->smb2.server.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));
+ xconn->smb2.server.max_trans));
return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
}