summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-07-01 17:41:38 +0200
committerKarolin Seeger <kseeger@samba.org>2015-07-19 20:13:10 +0200
commitaae0423902f5f159cb3fe7523fc8cd950635c832 (patch)
tree57f30c066ca37794ff0af8c9941802bd0edaced6
parent57c879aa568f3c5f81e5ebd167cebdefe0f55af3 (diff)
downloadsamba-aae0423902f5f159cb3fe7523fc8cd950635c832.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> (cherry picked from commit 14357700fd69291995ce6adebb13e7340a63c209)
-rw-r--r--source3/smbd/smb2_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 70ffc3cfe3a..ce393354623 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2685,12 +2685,12 @@ NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
size_t body_len;
uint8_t *dyn;
size_t dyn_len;
- bool do_encryption = session->global->encryption_required;
+ bool do_encryption = session->encryption_desired;
uint64_t nonce_high = 0;
uint64_t nonce_low = 0;
NTSTATUS status;
- if (tcon->global->encryption_required) {
+ if (tcon->encryption_desired) {
do_encryption = true;
}