diff options
author | Steve French <stfrench@microsoft.com> | 2020-03-27 20:47:41 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-03-27 20:47:41 +0300 |
commit | edad734c74a4ab6ba8531186054779b2382df3fd (patch) | |
tree | c2065a91f8cb138b4e2c7ddbd4067123de3eb133 /fs/cifs/smb2transport.c | |
parent | 97adda8b3ab703de8e4c8d27646ddd54fe22879c (diff) | |
download | linux-edad734c74a4ab6ba8531186054779b2382df3fd.tar.xz |
smb3: use SMB2_SIGNATURE_SIZE define
It clarifies the code slightly to use SMB2_SIGNATURE_SIZE
define rather than 16.
Suggested-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2transport.c')
-rw-r--r-- | fs/cifs/smb2transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c index 08b703b7a15e..2b67a7769d74 100644 --- a/fs/cifs/smb2transport.c +++ b/fs/cifs/smb2transport.c @@ -602,7 +602,7 @@ int smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) { unsigned int rc; - char server_response_sig[16]; + char server_response_sig[SMB2_SIGNATURE_SIZE]; struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base; |