Skip to content

Commit ff31ba1

Browse files
Anastasia Belovasmfrench
authored andcommitted
cifs: spnego: add ';' in HOST_KEY_LEN
"host=" should start with ';' (as in cifs_get_spnego_key) So its length should be 6. Found by Linux Verification Center (linuxtesting.org) with SVACE. Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Fixes: 7c9c376 ("[CIFS] add constants for string lengths of keynames in SPNEGO upcall string") Signed-off-by: Anastasia Belova <[email protected]> Co-developed-by: Ekaterina Esina <[email protected]> Signed-off-by: Ekaterina Esina <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b85ea95 commit ff31ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/cifs_spnego.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ struct key_type cifs_spnego_key_type = {
6464
* strlen(";sec=ntlmsspi") */
6565
#define MAX_MECH_STR_LEN 13
6666

67-
/* strlen of "host=" */
68-
#define HOST_KEY_LEN 5
67+
/* strlen of ";host=" */
68+
#define HOST_KEY_LEN 6
6969

7070
/* strlen of ";ip4=" or ";ip6=" */
7171
#define IP_KEY_LEN 5

0 commit comments

Comments
 (0)