From 5af3e2d613f55ab7289b85d22a0e9fa115de4549 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 13 Aug 2007 07:20:19 +0000 Subject: r24355: move reply_outbuf() to the place where it's used metze (This used to be commit c7ed550483233851d395edb4b8443b3296b45fb7) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index bf09180529a..26ddde7a65c 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); -- cgit