s3:smbd: Fix Coverity ID 937, REVERSE_INULL
authorVolker Lendecke <vl@samba.org>
Fri, 4 Sep 2009 05:57:19 +0000 (07:57 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 4 Sep 2009 05:57:26 +0000 (07:57 +0200)
source3/smbd/open.c

index 045635535f6da6b2aced9f22b2782b57ef07ef22..492164ceeee50af7e56143c51b53d7327553d43c 100644 (file)
@@ -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;
        }