1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r24355: move reply_outbuf() to the place where it's used

metze
(This used to be commit c7ed550483)
This commit is contained in:
Stefan Metzmacher 2007-08-13 07:20:19 +00:00 committed by Gerald (Jerry) Carter
parent b01978f2a9
commit 5af3e2d613

View File

@ -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);