diff options
author | Volker Lendecke <vl@samba.org> | 2010-06-12 11:43:53 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-06-12 15:42:51 +0200 |
commit | fd1891829a60967114353e42dc3ee73b84e1ac33 (patch) | |
tree | b158cd58c23d578d2735836ca725eb7152ed3d06 /source3/smbd | |
parent | 2826471123857c3304763fee25c639f41cbd1d84 (diff) | |
download | samba-fd1891829a60967114353e42dc3ee73b84e1ac33.tar.gz samba-fd1891829a60967114353e42dc3ee73b84e1ac33.tar.bz2 samba-fd1891829a60967114353e42dc3ee73b84e1ac33.zip |
s3: Remove smbd_server_conn from reply_readbraw
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |