summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-04 07:57:19 +0200
committerVolker Lendecke <vl@samba.org>2009-09-04 07:57:26 +0200
commitb4a4186556f6d33be40ef7358bcd71c83a8092f2 (patch)
tree2763533cded4faaef59aee293f3f99c1f5b8a99a
parent360436b656fc2d939175ae740ecee98d44fadaec (diff)
downloadsamba-b4a4186556f6d33be40ef7358bcd71c83a8092f2.tar.gz
samba-b4a4186556f6d33be40ef7358bcd71c83a8092f2.tar.bz2
samba-b4a4186556f6d33be40ef7358bcd71c83a8092f2.zip
s3:smbd: Fix Coverity ID 937, REVERSE_INULL
-rw-r--r--source3/smbd/open.c4
1 files 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;
}