]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Adapt a call to setup_dfs_referral() to README.Coding
authorVolker Lendecke <vl@samba.org>
Tue, 9 Aug 2022 12:51:10 +0000 (14:51 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 26 Aug 2022 18:54:37 +0000 (18:54 +0000)
Makes it easier to handle in a debugger

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_trans2.c

index 4b3c7815c031fa11b8506c7218434ebfa9580408..bc919815a6bcdbc9e6daeb46d75488eb25a8334d 100644 (file)
@@ -2918,8 +2918,9 @@ static void call_trans2getdfsreferral(connection_struct *conn,
                reply_nterror(req, NT_STATUS_NOT_FOUND);
                return;
        }
-       if((reply_size = setup_dfs_referral(conn, pathname, max_referral_level,
-                                           ppdata,&status)) < 0) {
+       reply_size = setup_dfs_referral(
+               conn, pathname, max_referral_level, ppdata, &status);
+       if (reply_size < 0) {
                reply_nterror(req, status);
                return;
        }