diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-21 19:37:27 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-21 20:49:17 +0100 |
commit | 6a149022976fe6a5579ec9afc7a4d2dcb44dc8af (patch) | |
tree | fafd3cb4d3f1a43d3a46bc601b8a5279882c0295 /source3/smbd | |
parent | f7b4151a64d8c6851e62255a7139fd00a5fc63a3 (diff) | |
download | samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.tar.gz samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.tar.bz2 samba-6a149022976fe6a5579ec9afc7a4d2dcb44dc8af.zip |
s3: Make the implicit reference to get_Protocol in lp_use_sendfile() explicit
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4d7166fe9f..0b77d82edd 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2925,7 +2925,8 @@ static void send_file_readbraw(connection_struct *conn, if ( !req_is_in_chain(req) && (nread > 0) && (fsp->base_fsp == NULL) && (fsp->wcp == NULL) && - lp_use_sendfile(SNUM(conn), smbd_server_conn->smb1.signing_state) ) { + lp_use_sendfile(SNUM(conn), get_Protocol(), + smbd_server_conn->smb1.signing_state) ) { ssize_t sendfile_read = -1; char header[4]; DATA_BLOB header_blob; @@ -3452,7 +3453,8 @@ static void send_file_readX(connection_struct *conn, struct smb_request *req, if (!req_is_in_chain(req) && !is_encrypted_packet(req->inbuf) && (fsp->base_fsp == NULL) && (fsp->wcp == NULL) && - lp_use_sendfile(SNUM(conn), smbd_server_conn->smb1.signing_state) ) { + lp_use_sendfile(SNUM(conn), get_Protocol(), + smbd_server_conn->smb1.signing_state) ) { uint8 headerbuf[smb_size + 12 * 2]; DATA_BLOB header; |