]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: add missing check for IPC share for TRANS2_GET_DFS_REFERRAL
authorRalph Boehme <slow@samba.org>
Sun, 28 Aug 2022 09:12:52 +0000 (11:12 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 28 Aug 2022 19:59:28 +0000 (19:59 +0000)
Cf MS-CIFS 3.3.5.58.11.

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

index bc919815a6bcdbc9e6daeb46d75488eb25a8334d..37c5036fb9c2d1d013911bc7f7d9bab2f2e0407e 100644 (file)
@@ -2900,6 +2900,11 @@ static void call_trans2getdfsreferral(connection_struct *conn,
 
        DEBUG(10,("call_trans2getdfsreferral\n"));
 
+       if (!IS_IPC(conn)) {
+               reply_nterror(req, NT_STATUS_ACCESS_DENIED);
+               return;
+       }
+
        if (total_params < 3) {
                reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
                return;