diff options
author | Michael Adam <obnox@samba.org> | 2015-07-01 17:41:38 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-07-07 14:05:28 +0200 |
commit | 14357700fd69291995ce6adebb13e7340a63c209 (patch) | |
tree | a4132e89434b71c9bb817e73b7fcd9f664306eb0 /source3 | |
parent | 41cb881e775ea7eb0c59d9e0cafb6ab5531918d9 (diff) | |
download | samba-14357700fd69291995ce6adebb13e7340a63c209.tar.gz |
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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_server.c | 4 |
1 files 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; } } |