From 8f8aac9c2fae57351785e28afc7096f9dc7be028 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 Jun 2010 11:46:29 +0200 Subject: s3: Remove smbd_server_conn from reply_read_and_X --- source3/smbd/reply.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4a7cb98377..67a955c980 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3661,7 +3661,7 @@ void reply_read_and_X(struct smb_request *req) return; } /* We currently don't do this on signed or sealed data. */ - if (srv_is_signing_active(smbd_server_conn) || + if (srv_is_signing_active(req->sconn) || is_encrypted_packet(req->inbuf)) { reply_nterror(req, NT_STATUS_NOT_SUPPORTED); END_PROFILE(SMBreadX); @@ -3723,9 +3723,9 @@ void reply_read_and_X(struct smb_request *req) /* NT_STATUS_RETRY - fall back to sync read. */ } - smbd_lock_socket(smbd_server_conn); + smbd_lock_socket(req->sconn); send_file_readX(conn, req, fsp, startpos, smb_maxcnt); - smbd_unlock_socket(smbd_server_conn); + smbd_unlock_socket(req->sconn); out: END_PROFILE(SMBreadX); -- cgit