]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: reformat an if expression in reply_readbraw()
authorRalph Boehme <slow@samba.org>
Thu, 2 Apr 2020 07:13:56 +0000 (09:13 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2020 19:05:43 +0000 (19:05 +0000)
No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index b23a2d373b2b7e323b049ca5bdc1bda411036232..62465a17fcff5b3072806123599645d7b81c53f4 100644 (file)
@@ -3999,9 +3999,13 @@ void reply_readbraw(struct smb_request *req)
         * not a NTSTATUS.
         */
 
-       if (!fsp || !conn || conn != fsp->conn ||
-                       req->vuid != fsp->vuid ||
-                       fsp->is_directory || fsp->fh->fd == -1) {
+       if (fsp == NULL ||
+           conn == NULL ||
+           conn != fsp->conn ||
+           req->vuid != fsp->vuid ||
+           fsp->is_directory ||
+           fsp->fh->fd == -1)
+       {
                /*
                 * fsp could be NULL here so use the value from the packet. JRA.
                 */