From fd1891829a60967114353e42dc3ee73b84e1ac33 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 Jun 2010 11:43:53 +0200 Subject: s3: Remove smbd_server_conn from reply_readbraw --- source3/smbd/reply.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index cdc807c724..6c93bd19e7 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3033,6 +3033,7 @@ normal_readbraw: void reply_readbraw(struct smb_request *req) { connection_struct *conn = req->conn; + struct smbd_server_connection *sconn = req->sconn; ssize_t maxcount,mincount; size_t nread = 0; SMB_OFF_T startpos; @@ -3042,7 +3043,7 @@ void reply_readbraw(struct smb_request *req) START_PROFILE(SMBreadbraw); - if (srv_is_signing_active(smbd_server_conn) || + if (srv_is_signing_active(sconn) || is_encrypted_packet(req->inbuf)) { exit_server_cleanly("reply_readbraw: SMB signing/sealing is active - " "raw reads/writes are disallowed."); @@ -3054,7 +3055,7 @@ void reply_readbraw(struct smb_request *req) return; } - if (smbd_server_conn->smb1.echo_handler.trusted_fde) { + if (sconn->smb1.echo_handler.trusted_fde) { DEBUG(2,("SMBreadbraw rejected with NOT_SUPPORTED because of " "'async smb echo handler = yes'\n")); reply_readbraw_error(); -- cgit