git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf018e
)
s3:smbd: make use of ENCRYPTION_REQUIRED()
author
Stefan Metzmacher
<metze@samba.org>
Fri, 17 Aug 2012 07:41:42 +0000
(09:41 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 17 Aug 2012 12:51:57 +0000
(14:51 +0200)
metze
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index b30478cb2553cb1dd989bdca828671a7c170a7a6..2de6e41d1137272a87e382f5f84d1946422845bb 100644
(file)
--- 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));