diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 8a16bacddbe..6bf29c2b0c9 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -253,7 +253,11 @@ bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname) return false; } - return smb_fname->stream_name != NULL; + if (smb_fname->stream_name == NULL) { + return false; + } + + return true; } /****************************************************************************