summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-09-15 03:47:41 +0200
committerMichael Adam <obnox@samba.org>2014-09-19 09:15:11 +0200
commitd27ae4a14a1944ea522431a419d45c3036a15eeb (patch)
tree0cad001a1d24c17adc57e0e72911fcb3726f8b58
parent2405415583f51479b29b44ab5eb578ecda18a28e (diff)
downloadsamba-d27ae4a14a1944ea522431a419d45c3036a15eeb.tar.gz
samba-d27ae4a14a1944ea522431a419d45c3036a15eeb.tar.xz
samba-d27ae4a14a1944ea522431a419d45c3036a15eeb.zip
s3:smbd: pass smbXsrv_connection to make_connection_snum()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 5f7c7d0562..bb20e94b6d 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -517,12 +517,12 @@ NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum)
connecting user if appropriate.
****************************************************************************/
-static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
+static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
connection_struct *conn,
int snum, struct user_struct *vuser,
const char *pdev)
{
- struct smbXsrv_connection *xconn = sconn->conn;
+ struct smbd_server_connection *sconn = xconn->sconn;
struct smb_filename *smb_fname_cpath = NULL;
fstring dev;
int ret;
@@ -918,7 +918,7 @@ static connection_struct *make_connection_smb1(struct smb_request *req,
conn->cnum = tcon->global->tcon_wire_id;
conn->tcon = tcon;
- *pstatus = make_connection_snum(req->sconn,
+ *pstatus = make_connection_snum(req->xconn,
conn,
snum,
vuser,
@@ -974,7 +974,7 @@ connection_struct *make_connection_smb2(struct smbd_smb2_request *req,
conn->cnum = tcon->global->tcon_wire_id;
conn->tcon = tcon;
- *pstatus = make_connection_snum(sconn,
+ *pstatus = make_connection_snum(req->xconn,
conn,
snum,
vuser,