struct user_struct *vuser,
const char *pdev,
NTSTATUS *pstatus);
-connection_struct *make_connection(struct smbd_server_connection *sconn,
+connection_struct *make_connection(struct smb_request *req,
NTTIME now,
const char *service_in,
const char *pdev, uint64_t vuid,
const char *p2;
TALLOC_CTX *ctx = talloc_tos();
struct smbXsrv_connection *xconn = req->xconn;
- struct smbd_server_connection *sconn = req->sconn;
NTTIME now = timeval_to_nttime(&req->request_time);
START_PROFILE(SMBtcon);
service = service_buf;
}
- conn = make_connection(sconn, now, service, dev,
+ conn = make_connection(req, now, service, dev,
req->vuid,&nt_status);
req->conn = conn;
bool session_key_updated = false;
uint16_t optional_support = 0;
struct smbXsrv_connection *xconn = req->xconn;
- struct smbd_server_connection *sconn = req->sconn;
START_PROFILE(SMBtconX);
session_key_updated = true;
}
- conn = make_connection(sconn, now, service, client_devicetype,
+ conn = make_connection(req, now, service, client_devicetype,
req->vuid, &nt_status);
req->conn =conn;
* @param service
****************************************************************************/
-connection_struct *make_connection(struct smbd_server_connection *sconn,
+connection_struct *make_connection(struct smb_request *req,
NTTIME now,
const char *service_in,
const char *pdev, uint64_t vuid,
NTSTATUS *status)
{
+ struct smbd_server_connection *sconn = req->sconn;
uid_t euid;
struct user_struct *vuser = NULL;
char *service = NULL;