summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-17 09:41:42 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-17 14:51:57 +0200
commit8b3da9a1f400040eef14b63ed0b7884a9e82d907 (patch)
treeb9c5770f6cac848be4e4dce2ff6af5dbc4f5d461 /source3
parentabf018e8b64b237aa029978c20bd418524fff3d0 (diff)
downloadsamba-8b3da9a1f400040eef14b63ed0b7884a9e82d907.tar.gz
samba-8b3da9a1f400040eef14b63ed0b7884a9e82d907.tar.bz2
samba-8b3da9a1f400040eef14b63ed0b7884a9e82d907.zip
s3:smbd: make use of ENCRYPTION_REQUIRED()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index b30478cb25..2de6e41d11 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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));