summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index bf09180529..26ddde7a65 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3435,7 +3435,6 @@ void reply_write_and_X(connection_struct *conn, struct smb_request *req)
}
nwritten = write_file(fsp,data,startpos,numtowrite);
- reply_outbuf(req, 6, 0);
}
if(((nwritten == 0) && (numtowrite != 0))||(nwritten < 0)) {
@@ -3444,6 +3443,7 @@ void reply_write_and_X(connection_struct *conn, struct smb_request *req)
return;
}
+ reply_outbuf(req, 6, 0);
SSVAL(req->outbuf,smb_vwv2,nwritten);
if (large_writeX)
SSVAL(req->outbuf,smb_vwv4,(nwritten>>16)&1);