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:
parent
b01978f2a9
commit
5af3e2d613
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user