s3:smbd: Fix an inappropriate pointer return in a bool fn
authorVolker Lendecke <vl@samba.org>
Fri, 18 Sep 2009 01:34:55 +0000 (03:34 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 18 Sep 2009 01:35:18 +0000 (03:35 +0200)
source3/smbd/filename_util.c

index 867709a3737d79ab4a08c4d3611ecd6b7e98fa97..8c099657c4da7d765bf80088975530361d7ffb26 100644 (file)
@@ -190,7 +190,7 @@ bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname)
                return false;
        }
 
-       return smb_fname->stream_name;
+       return smb_fname->stream_name != NULL;
 }
 
 /****************************************************************************