struct smbd_smb2_send_queue *send_queue;
size_t send_queue_len;
+ bool allow_2ff;
struct {
uint32_t capabilities;
struct GUID guid;
} locks;
} smb1;
struct {
- bool negprot_2ff;
struct {
/* The event that makes us process our blocking lock queue */
struct tevent_timer *brl_timeout;
*/
void reply_smb20ff(struct smb_request *req, uint16_t choice)
{
- req->sconn->smb2.negprot_2ff = true;
+ struct smbXsrv_connection *xconn = req->sconn->conn;
+ xconn->smb2.allow_2ff = true;
reply_smb20xx(req, SMB2_DIALECT_REVISION_2FF);
}
NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
{
+ struct smbXsrv_connection *xconn = req->sconn->conn;
NTSTATUS status;
const uint8_t *inbody;
const uint8_t *indyn = NULL;
dialect = SVAL(indyn, c*2);
if (dialect == SMB2_DIALECT_REVISION_2FF) {
- if (req->sconn->smb2.negprot_2ff) {
- req->sconn->smb2.negprot_2ff = false;
+ if (xconn->smb2.allow_2ff) {
+ xconn->smb2.allow_2ff = false;
protocol = PROTOCOL_SMB2_10;
break;
}