diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-28 01:26:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-28 01:26:44 +0000 |
commit | 4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717 (patch) | |
tree | 168e4a181171242b20c1e016363ab028a8cf7d96 /source3/smbd | |
parent | df2cdf6d7b61483be87b08cad2f89ee7e80f7f8e (diff) | |
download | samba-4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717.tar.gz samba-4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717.tar.bz2 samba-4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717.zip |
Fix for potential crash bug with bad fid.
Jeremy.
(This used to be commit 82f81c830db53ce507c2a8e65db962f931141afd)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index e914a974fb..ae312cd5d2 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1735,7 +1735,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, } return(UNIXERROR(ERRDOS,ERRbadpath)); } - } else if (fsp->print_file) { + } else if (fsp && fsp->print_file) { /* * Doing a DELETE_ON_CLOSE should cancel a print job. */ @@ -1999,6 +1999,18 @@ static int call_trans2setfilepathinfo(connection_struct *conn, break; } + case 1013: +#if 0 /* JRA */ + /* + * This (new) W2K call seems to set one byte. Not sure + * yet what it's trying to do. JRA. + */ + { + unsigned char setval = CVAL(pdata,0); + } +#endif /* JRA */ + return(ERROR(ERRDOS,ERRnoaccess)); + default: { return(ERROR(ERRDOS,ERRunknownlevel)); |