1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:smbd: make use of ENCRYPTION_REQUIRED()

metze
This commit is contained in:
Stefan Metzmacher 2012-08-17 09:41:42 +02:00
parent abf018e8b6
commit 8b3da9a1f4

View File

@ -8506,9 +8506,9 @@ static void handle_trans2(connection_struct *conn, struct smb_request *req,
SSVAL((discard_const_p(uint8_t, req->inbuf)),smb_flg2,req->flags2);
}
if (conn->encrypt_level == Required && !req->encrypted) {
if (ENCRYPTION_REQUIRED(conn) && !req->encrypted) {
if (state->call != TRANSACT2_QFSINFO &&
state->call != TRANSACT2_SETFSINFO) {
state->call != TRANSACT2_SETFSINFO) {
DEBUG(0,("handle_trans2: encryption required "
"with call 0x%x\n",
(unsigned int)state->call));