summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-06-12 15:10:11 +0200
committerMichael Adam <obnox@samba.org>2014-09-19 09:15:10 +0200
commit7e006d11134cdc37ea0fc13110fe5bbfb9de3f14 (patch)
treefc485b57edcd440c549924371f7f6f4defd31172 /source3/smbd/smb2_server.c
parent17f87297cd51b0910c3f1b26258ca0ec828a1ced (diff)
downloadsamba-7e006d11134cdc37ea0fc13110fe5bbfb9de3f14.tar.gz
samba-7e006d11134cdc37ea0fc13110fe5bbfb9de3f14.tar.xz
samba-7e006d11134cdc37ea0fc13110fe5bbfb9de3f14.zip
s3:smb2_server: use the global signing key to check if signing is required
If we have a channel session key, we also always have a global session key. For multi-channel it's possible that the channel session key is not in place yet, in that case the global session key needs to be used. In both cases (reauth or session bind) we session setup requests need to be signed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/smbd/smb2_server.c')
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 497c5dc6bf..ac6edddcfb 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -1970,7 +1970,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
encryption_required = x->global->encryption_required;
if (opcode == SMB2_OP_SESSSETUP &&
- x->global->channels[0].signing_key.length) {
+ x->global->signing_key.length > 0) {
signing_required = true;
}
}