1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

smbd:smb2: use encryption_desired in send_break

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11372

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Michael Adam 2015-07-01 17:41:38 +02:00 committed by Günther Deschner
parent 41cb881e77
commit 14357700fd

View File

@ -2853,8 +2853,8 @@ static NTSTATUS smbd_smb2_send_break(struct smbXsrv_connection *xconn,
if (session != NULL) {
session_wire_id = session->global->session_wire_id;
do_encryption = session->global->encryption_required;
if (tcon->global->encryption_required) {
do_encryption = session->encryption_desired;
if (tcon->encryption_desired) {
do_encryption = true;
}
}