From 4b28b5a1bb0eea0a1ad2853c15a99d223e3a6717 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 28 Jul 2001 01:26:44 +0000 Subject: Fix for potential crash bug with bad fid. Jeremy. (This used to be commit 82f81c830db53ce507c2a8e65db962f931141afd) --- source3/smbd/trans2.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source3/smbd') 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)); -- cgit