Fix coverity CID 931. This check is redundent as smb_fname can
authorJeremy Allison <jra@samba.org>
Sat, 18 Jul 2009 04:26:16 +0000 (21:26 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 18 Jul 2009 04:26:16 +0000 (21:26 -0700)
never be null in this function.
Jeremy.

source3/smbd/trans2.c

index 06536f9e217765e2925f8e6d735da60857280197..561c18a29d5ed63659c984f561041dc8b27ff6ff 100644 (file)
@@ -7244,7 +7244,7 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
 
                case SMB_SET_FILE_UNIX_HLINK:
                {
 
                case SMB_SET_FILE_UNIX_HLINK:
                {
-                       if (fsp || smb_fname == NULL) {
+                       if (fsp) {
                                /* We must have a pathname for this. */
                                return NT_STATUS_INVALID_LEVEL;
                        }
                                /* We must have a pathname for this. */
                                return NT_STATUS_INVALID_LEVEL;
                        }