diff mbox series

[v2,2/7] cifs: Use helper macro NTLMSSP_SIGNATURE in decode_ntlmssp_challenge()

Message ID 20221029090011.79367-3-zhangxiaoxu5@huawei.com (mailing list archive)
State New, archived
Headers show
Series cifs: minor code improvements | expand

Commit Message

Zhang Xiaoxu Oct. 29, 2022, 9 a.m. UTC
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(-)
diff mbox series

Patch

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;