diff options
| -rw-r--r-- | fs/cifs/cifs_spnego.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c index 6effccff85a5..87044906cd1f 100644 --- a/fs/cifs/cifs_spnego.c +++ b/fs/cifs/cifs_spnego.c | |||
| @@ -84,6 +84,9 @@ struct key_type cifs_spnego_key_type = { | |||
| 84 | /* strlen of ";uid=0x" */ | 84 | /* strlen of ";uid=0x" */ |
| 85 | #define UID_KEY_LEN 7 | 85 | #define UID_KEY_LEN 7 |
| 86 | 86 | ||
| 87 | /* strlen of ";creduid=0x" */ | ||
| 88 | #define CREDUID_KEY_LEN 11 | ||
| 89 | |||
| 87 | /* strlen of ";user=" */ | 90 | /* strlen of ";user=" */ |
| 88 | #define USER_KEY_LEN 6 | 91 | #define USER_KEY_LEN 6 |
| 89 | 92 | ||
| @@ -107,6 +110,7 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo) | |||
| 107 | IP_KEY_LEN + INET6_ADDRSTRLEN + | 110 | IP_KEY_LEN + INET6_ADDRSTRLEN + |
| 108 | MAX_MECH_STR_LEN + | 111 | MAX_MECH_STR_LEN + |
| 109 | UID_KEY_LEN + (sizeof(uid_t) * 2) + | 112 | UID_KEY_LEN + (sizeof(uid_t) * 2) + |
| 113 | CREDUID_KEY_LEN + (sizeof(uid_t) * 2) + | ||
| 110 | USER_KEY_LEN + strlen(sesInfo->userName) + | 114 | USER_KEY_LEN + strlen(sesInfo->userName) + |
| 111 | PID_KEY_LEN + (sizeof(pid_t) * 2) + 1; | 115 | PID_KEY_LEN + (sizeof(pid_t) * 2) + 1; |
| 112 | 116 | ||
