From 967ff180f7b784d62282cd8f4c9987d5b8ae8956 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Jun 2014 14:22:13 +0200 Subject: [PATCH] s3:smbd: use req->xconn to send_trans2_replies() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/smbd/trans2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 77ba9aabe63..9a02a74d2c2 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -859,8 +859,8 @@ void send_trans2_replies(connection_struct *conn, int alignment_offset = 1; /* JRA. This used to be 3. Set to 1 to make netmon parse ok. */ int data_alignment_offset = 0; bool overflow = False; - struct smbd_server_connection *sconn = req->sconn; - struct smbXsrv_connection *xconn = sconn->conn; + struct smbXsrv_connection *xconn = req->xconn; + struct smbd_server_connection *sconn = xconn->sconn; int max_send = xconn->smb1.sessions.max_send; /* Modify the data_to_send and datasize and set the error if -- 2.34.1