From 14357700fd69291995ce6adebb13e7340a63c209 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 1 Jul 2015 17:41:38 +0200 Subject: [PATCH] smbd:smb2: use encryption_desired in send_break BUG: https://bugzilla.samba.org/show_bug.cgi?id=11372 Signed-off-by: Michael Adam Reviewed-by: Guenther Deschner --- source3/smbd/smb2_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 97e99a0be3c..2ea997e896e 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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; } } -- 2.11.4.GIT