summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-23 23:55:33 +0000
committerJeremy Allison <jra@samba.org>1998-11-23 23:55:33 +0000
commita4cfbedf1ef5899629b4b8fc12ecf7897d089785 (patch)
tree5fd009c6892f49d5afc1d94c9ddfdbc0c91efda1 /source3/smbd
parent83e41392b6f9d389ecbe2be2aabbfda961a0027e (diff)
downloadsamba-a4cfbedf1ef5899629b4b8fc12ecf7897d089785.tar.gz
samba-a4cfbedf1ef5899629b4b8fc12ecf7897d089785.tar.bz2
samba-a4cfbedf1ef5899629b4b8fc12ecf7897d089785.zip
Fixed -Wall -Wshadow warning.
Jeremy. (This used to be commit 81b90208910528a4ace683f30e39c54d8cfa12b7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index d71c23c87b..7bfb046cc2 100644
--- a/source3/smbd/trans2.c
+++ b/source3/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)