Message ID | 20221028121129.3375402-3-zhangxiaoxu5@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | cifs: minor code improvements | expand |
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 92e4278ec35d..e08c5f547afb 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -764,7 +764,7 @@ int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, return -EINVAL; } - if (memcmp(pblob->Signature, "NTLMSSP", 8)) { + if (memcmp(pblob->Signature, NTLMSSP_SIGNATURE, 8)) { cifs_dbg(VFS, "blob signature incorrect %s\n", pblob->Signature); return -EINVAL;
The siguature type NTLMSSP already defined as macro, use it. Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com> --- fs/cifs/sess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)