smbd: Fix clients connecting unencrypted with PROTOCOL_SMB2_24 or higher.
authorJeremy Allison <jra@samba.org>
Tue, 16 Jun 2015 22:50:30 +0000 (15:50 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 17 Jun 2015 20:10:24 +0000 (22:10 +0200)
commit0aefbf45c92988db7dbe6ccb0cfe3d43c829a122
treec16b17a6bf1ebc5be841eeeb335596cff838e128
parentbcb69499e1a9312ea3ee32561fdecb2b22835e77
smbd: Fix clients connecting unencrypted with PROTOCOL_SMB2_24 or higher.

Nonce code was terminating connections where xconn->smb2.server.cipher == 0.

If no negotiated cipher (smb2.server.cipher is zero) set nonce_high_max to zero.
smb2_get_new_nonce() returns NT_STATUS_ENCRYPTION_FAILED if it is ever called with
session->nonce_high_max == 0.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11300

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_sesssetup.c