summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-07 13:14:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:23 -0500
commit1f67efab7c40ad440d6919d71bdee29d7bf7d175 (patch)
tree8f1ca1f2806cd7309711152e3b6e8cd04d355169 /source3/smbd
parentbb9664302b354c46041f58549d5adf0a241eb6c1 (diff)
downloadsamba-1f67efab7c40ad440d6919d71bdee29d7bf7d175.tar.gz
samba-1f67efab7c40ad440d6919d71bdee29d7bf7d175.tar.bz2
samba-1f67efab7c40ad440d6919d71bdee29d7bf7d175.zip
r24270: Fix some END_PROFILE(SMBwriteX)
(This used to be commit 36f2347561ab06b5d8175ad0a9c4da2817e759f9)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 8007a769ec..d7b30fd72d 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3287,6 +3287,7 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
START_PROFILE(SMBwriteX);
if ((CVAL(inbuf, smb_wct) != 12) && (CVAL(inbuf, smb_wct) != 14)) {
+ END_PROFILE(SMBwriteX);
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
}
@@ -3306,6 +3307,7 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
CHECK_FSP(fsp,conn);
if (!CHECK_WRITE(fsp)) {
+ END_PROFILE(SMBwriteX);
return(ERROR_DOS(ERRDOS,ERRbadaccess));
}
@@ -3388,9 +3390,9 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
status = sync_file(conn, fsp, write_through);
if (!NT_STATUS_IS_OK(status)) {
- END_PROFILE(SMBwriteX);
DEBUG(5,("reply_write_and_X: sync_file for %s returned %s\n",
fsp->fsp_name, nt_errstr(status) ));
+ END_PROFILE(SMBwriteX);
return ERROR_NT(status);
}