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)
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;
}