summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/smbd/trans2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index d71c23c87b7..7bfb046cc29 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1658,9 +1658,8 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
case SMB_SET_FILE_DISPOSITION_INFO: /* Set delete on close for open file. */
{
- if (tran_call == TRANSACT2_SETFILEINFO)
+ if ((tran_call == TRANSACT2_SETFILEINFO) && (fsp != NULL))
{
- files_struct *fsp = file_fsp(params,0);
BOOL delete_on_close = (CVAL(pdata,0) ? True : False);
if(fsp->is_directory)