From b4a4186556f6d33be40ef7358bcd71c83a8092f2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 4 Sep 2009 07:57:19 +0200 Subject: s3:smbd: Fix Coverity ID 937, REVERSE_INULL --- source3/smbd/open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 045635535f..492164ceee 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3332,12 +3332,12 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn, dir_fsp = file_fsp(req, root_dir_fid); - if (is_ntfs_stream_smb_fname(dir_fsp->fsp_name)) { + if (dir_fsp == NULL) { status = NT_STATUS_INVALID_HANDLE; goto out; } - if (dir_fsp == NULL) { + if (is_ntfs_stream_smb_fname(dir_fsp->fsp_name)) { status = NT_STATUS_INVALID_HANDLE; goto out; } -- cgit