From c9e171ff72920c4d422045acbccf853cf1c27224 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 12 Jun 2014 08:38:48 +0200 Subject: s3:smb2_*: make use of smb2req->xconn where possible We need to use the connection that is used by the current request. Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/smbd/smb2_tcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/smb2_tcon.c') diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index 6289427bf93..5d78b4f840d 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -175,7 +175,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req, uint32_t *out_maximal_access, uint32_t *out_tree_id) { - struct smbXsrv_connection *conn = req->sconn->conn; + struct smbXsrv_connection *conn = req->xconn; const char *share = in_path; char *service = NULL; int snum = -1; @@ -498,7 +498,7 @@ static struct tevent_req *smbd_smb2_tdis_send(TALLOC_CTX *mem_ctx, struct smbd_smb2_tdis_state *state; struct tevent_req *subreq; struct smbd_smb2_request *preq; - struct smbXsrv_connection *xconn = smb2req->sconn->conn; + struct smbXsrv_connection *xconn = smb2req->xconn; req = tevent_req_create(mem_ctx, &state, struct smbd_smb2_tdis_state); -- cgit v1.2.1