diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-06-12 08:38:48 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-08-06 09:51:13 +0200 |
commit | c9e171ff72920c4d422045acbccf853cf1c27224 (patch) | |
tree | 570d1fa3976b745b899ceacc05653c876ed50afc /source3/smbd/smb2_tcon.c | |
parent | b7eeb658e7a961e6ffd56b94a7bf2712330a0b2b (diff) | |
download | samba-c9e171ff72920c4d422045acbccf853cf1c27224.tar.gz |
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 <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/smb2_tcon.c')
-rw-r--r-- | source3/smbd/smb2_tcon.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |