diff options
author | Jeremy Allison <jra@samba.org> | 2009-06-19 14:55:00 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-06-19 14:55:00 -0700 |
commit | 1e989dbb91175a6e040117ac77bcd58fba877605 (patch) | |
tree | 1c5d533d47fb2845fdcc252a6b76b856c89f47a9 | |
parent | 8925778a61bc26e898d948ee445eb4f9781924de (diff) | |
download | samba-1e989dbb91175a6e040117ac77bcd58fba877605.tar.gz samba-1e989dbb91175a6e040117ac77bcd58fba877605.tar.bz2 samba-1e989dbb91175a6e040117ac77bcd58fba877605.zip |
Fix coverity #676. Forward NULL.
Jeremy.
-rw-r--r-- | source3/smbd/open.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index d6331ee487..72370c8c7c 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1463,6 +1463,12 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, DEBUG(10, ("open_file_ntcreate: printer open fname=%s\n", smb_fname_str_dbg(smb_fname))); + if (!req) { + DEBUG(0,("open_file_ntcreate: printer open without " + "an SMB request!\n")); + return NT_STATUS_INTERNAL_ERROR; + } + return print_fsp_open(req, conn, fname, req->vuid, fsp, &smb_fname->st); } |