summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index c19ba6519f..bf29a2341d 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -872,8 +872,9 @@ void reply_ntcreate_and_X(connection_struct *conn,
if (create_options & FILE_NON_DIRECTORY_FILE) {
TALLOC_FREE(case_state);
- reply_force_nterror(req,
- NT_STATUS_FILE_IS_A_DIRECTORY);
+ reply_force_nterror(
+ req,
+ NT_STATUS_FILE_IS_A_DIRECTORY);
END_PROFILE(SMBntcreateX);
return;
}
@@ -1591,7 +1592,8 @@ static void call_nt_transact_create(connection_struct *conn,
if (NT_STATUS_EQUAL(status, NT_STATUS_FILE_IS_A_DIRECTORY)) {
/*
- * Fail the open if it was explicitly a non-directory file.
+ * Fail the open if it was explicitly a non-directory
+ * file.
*/
if (create_options & FILE_NON_DIRECTORY_FILE) {
@@ -1663,8 +1665,6 @@ static void call_nt_transact_create(connection_struct *conn,
}
}
- TALLOC_FREE(case_state);
-
file_len = sbuf.st_size;
fattr = dos_mode(conn,fname,&sbuf);
if(fattr == 0) {