fixed mandatory signing
[kai/samba.git] / source4 / smb_server / smb2 / negprot.c
index 2da39001ab1f4045d2c1566f1b8b5ee07d2efd9f..3e6e2e1a43c9b2a222f91062bc37bc605788ec72 100644 (file)
@@ -121,6 +121,8 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2
                break;
        case SMB_SIGNING_REQUIRED:
                io->out.security_mode = SMB2_NEGOTIATE_SIGNING_ENABLED | SMB2_NEGOTIATE_SIGNING_REQUIRED;
+               /* force signing on immediately */
+               req->smb_conn->doing_signing = true;
                break;
        }
        io->out.dialect_revision   = SMB2_DIALECT_REVISION;