Fix coverity CID 930. Pointer check can never be null here.
authorJeremy Allison <jra@samba.org>
Sat, 18 Jul 2009 04:29:28 +0000 (21:29 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 18 Jul 2009 04:29:28 +0000 (21:29 -0700)
Jeremy

source3/smbd/trans2.c

index 561c18a29d5ed63659c984f561041dc8b27ff6ff..cb76deb90ae31bd3ebd0f51c6a6459d12415063f 100644 (file)
@@ -4806,7 +4806,7 @@ static void call_trans2qfilepathinfo(connection_struct *conn,
 
                        /* We know this name is ok, it's already passed the checks. */
 
-               } else if(fsp && (fsp->is_directory || fsp->fh->fd == -1)) {
+               } else if(fsp->is_directory || fsp->fh->fd == -1) {
                        /*
                         * This is actually a QFILEINFO on a directory
                         * handle (returned from an NT SMB). NT5.0 seems