summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-12 11:01:10 +0200
committerVolker Lendecke <vl@samba.org>2010-06-12 11:59:21 +0200
commitedfc7eaf6ddd0e08c6a8544230c42f50ed45d9aa (patch)
tree638caa484d3ba095ae618340e7c6444a28c8539e
parent312a508e8880bead0d5a3343540f67e7696a00a0 (diff)
downloadsamba-edfc7eaf6ddd0e08c6a8544230c42f50ed45d9aa.tar.gz
samba-edfc7eaf6ddd0e08c6a8544230c42f50ed45d9aa.tar.bz2
samba-edfc7eaf6ddd0e08c6a8544230c42f50ed45d9aa.zip
s3: Add "smbd_server_connection" to smb_request
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/smbd/process.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 877588a559..3cbd0c082d 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -612,6 +612,7 @@ struct smb_request {
size_t unread_bytes;
bool encrypted;
connection_struct *conn;
+ struct smbd_server_connection *sconn;
struct smb_perfcount_data pcd;
/*
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 9dc43c4bf3..ad6859b5fc 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -465,6 +465,7 @@ static bool init_smb_request(struct smb_request *req, const uint8 *inbuf,
req->buf = (const uint8_t *)smb_buf(inbuf);
req->unread_bytes = unread_bytes;
req->encrypted = encrypted;
+ req->sconn = sconn;
req->conn = conn_find(sconn,req->tid);
req->chain_fsp = NULL;
req->chain_outbuf = NULL;