STEP92? TODO/HACK; SMB2_OP_NEGPROT allowed_flags ...
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Jun 2014 14:34:01 +0000 (16:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 13:45:14 +0000 (14:45 +0100)
source3/smbd/smb2_server.c

index f94bd97dbf3b8774a6c49f20a2469489659c6358..7c7e2caf682b9ae7adbe5710406905e520369f85 100644 (file)
@@ -2457,6 +2457,10 @@ DBG_ERR("=== OBNOX (%s) === : opcode[%s] mid[%llu] csn[%u]\n", __location__, smb
                        allowed_flags |= SMB2_HDR_FLAG_PRIORITY_MASK;
                }
        }
+       if (opcode == SMB2_OP_NEGPROT) {
+               // HACK ...
+               allowed_flags = 0;
+       }
        if (opcode == SMB2_OP_CANCEL) {
                allowed_flags |= SMB2_HDR_FLAG_ASYNC;
        }