Commit edad734c authored by Steve French's avatar Steve French

smb3: use SMB2_SIGNATURE_SIZE define

It clarifies the code slightly to use SMB2_SIGNATURE_SIZE
define rather than 16.
Suggested-by: default avatarHenning Schild <henning.schild@siemens.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 97adda8b
...@@ -602,7 +602,7 @@ int ...@@ -602,7 +602,7 @@ int
smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server)
{ {
unsigned int rc; unsigned int rc;
char server_response_sig[16]; char server_response_sig[SMB2_SIGNATURE_SIZE];
struct smb2_sync_hdr *shdr = struct smb2_sync_hdr *shdr =
(struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base; (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment