summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/reply.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 83e51e3892..f5a3186e5e 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -43,7 +43,7 @@ extern int max_send;
/* Accessor function for smb_read_error for smbd functions. */
-enum smb_read_errors *get_srv_read_error(void)
+static enum smb_read_errors *get_srv_read_error(void)
{
return &smb_read_error;
}
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 46c14d158e..f371dde705 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3516,8 +3516,8 @@ void reply_writebraw(struct smb_request *req)
(int)tcount,(int)nwritten,(int)numtowrite));
}
- if (read_data(smbd_server_fd(), buf+4, numtowrite,get_srv_read_error())
- != numtowrite ) {
+ if (read_data(smbd_server_fd(), buf+4, numtowrite, NULL)
+ != numtowrite ) {
DEBUG(0,("reply_writebraw: Oversize secondary write "
"raw read failed (%s). Terminating\n",
strerror(errno) ));