git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
403f53d
)
Fixed -Wall -Wshadow warning.
author
Jeremy Allison
<jra@samba.org>
Mon, 23 Nov 1998 23:55:33 +0000
(23:55 +0000)
committer
Jeremy Allison
<jra@samba.org>
Mon, 23 Nov 1998 23:55:33 +0000
(23:55 +0000)
Jeremy.
source/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source/smbd/trans2.c
b/source/smbd/trans2.c
index d71c23c87b70eb3f5a1fa760e42c60d9c4ea3a7d..7bfb046cc291417a308bedaea17977a6be7f90a2 100644
(file)
--- 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)