summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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;