smbd:smb2: use encryption_desired in send_break
authorMichael Adam <obnox@samba.org>
Wed, 1 Jul 2015 15:41:38 +0000 (17:41 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 7 Jul 2015 12:05:28 +0000 (14:05 +0200)
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>
source3/smbd/smb2_server.c

index 97e99a0be3cc9b65f9b3e577e8866bbd6b34aeca..2ea997e896eec906b33310a2068effca24584623 100644 (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;
                }
        }