summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index fd4f5d62c0..fca16a2f04 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2740,24 +2740,24 @@ int reply_lseek(connection_struct *conn, char *inbuf,char *outbuf, int size, int
int reply_flush(connection_struct *conn, char *inbuf,char *outbuf, int size, int dum_buffsize)
{
- int outsize = set_message(outbuf,0,0,True);
- files_struct *fsp = file_fsp(inbuf,smb_vwv0);
- START_PROFILE(SMBflush);
-
- if (fsp) {
- CHECK_FSP(fsp,conn);
- CHECK_ERROR(fsp);
- }
+ int outsize = set_message(outbuf,0,0,True);
+ files_struct *fsp = file_fsp(inbuf,smb_vwv0);
+ START_PROFILE(SMBflush);
- if (!fsp) {
- file_sync_all(conn);
- } else {
+ CHECK_FSP(fsp,conn);
+ if (fsp) {
+ CHECK_ERROR(fsp);
+ }
+
+ if (!fsp) {
+ file_sync_all(conn);
+ } else {
sync_file(conn,fsp);
- }
-
- DEBUG(3,("flush\n"));
- END_PROFILE(SMBflush);
- return(outsize);
+ }
+
+ DEBUG(3,("flush\n"));
+ END_PROFILE(SMBflush);
+ return(outsize);
}