Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206261
b: refs/heads/master
c: ba5dadb
h: refs/heads/master
i:
  206259: df860ef
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Aug 5, 2010
1 parent 5a64603 commit 0a00853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5acfec2502cf60a91dc1959e476b588ecb3a1b8a
refs/heads/master: ba5dadbf4e7b531bd7ccecffb4d3935c80a3372e
4 changes: 4 additions & 0 deletions trunk/fs/cifs/cifs_spnego.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ struct key_type cifs_spnego_key_type = {
/* strlen of ";uid=0x" */
#define UID_KEY_LEN 7

/* strlen of ";creduid=0x" */
#define CREDUID_KEY_LEN 11

/* strlen of ";user=" */
#define USER_KEY_LEN 6

Expand All @@ -107,6 +110,7 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
IP_KEY_LEN + INET6_ADDRSTRLEN +
MAX_MECH_STR_LEN +
UID_KEY_LEN + (sizeof(uid_t) * 2) +
CREDUID_KEY_LEN + (sizeof(uid_t) * 2) +
USER_KEY_LEN + strlen(sesInfo->userName) +
PID_KEY_LEN + (sizeof(pid_t) * 2) + 1;

Expand Down

0 comments on commit 0a00853

Please sign in to comment.