diff options
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r-- | net/sunrpc/auth_gss/gss_krb5_seqnum.c | 4 | ||||
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_seqnum.c b/net/sunrpc/auth_gss/gss_krb5_seqnum.c index f160be6c1a46..17562b4c35f6 100644 --- a/net/sunrpc/auth_gss/gss_krb5_seqnum.c +++ b/net/sunrpc/auth_gss/gss_krb5_seqnum.c | |||
@@ -75,8 +75,8 @@ krb5_get_seq_num(struct crypto_blkcipher *key, | |||
75 | if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) | 75 | if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) |
76 | return code; | 76 | return code; |
77 | 77 | ||
78 | if ((plain[4] != plain[5]) || (plain[4] != plain[6]) | 78 | if ((plain[4] != plain[5]) || (plain[4] != plain[6]) || |
79 | || (plain[4] != plain[7])) | 79 | (plain[4] != plain[7])) |
80 | return (s32)KG_BAD_SEQ; | 80 | return (s32)KG_BAD_SEQ; |
81 | 81 | ||
82 | *direction = plain[4]; | 82 | *direction = plain[4]; |
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index f6c51e562a02..e34bc531fcb9 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c | |||
@@ -105,8 +105,8 @@ static int rsi_match(struct cache_head *a, struct cache_head *b) | |||
105 | { | 105 | { |
106 | struct rsi *item = container_of(a, struct rsi, h); | 106 | struct rsi *item = container_of(a, struct rsi, h); |
107 | struct rsi *tmp = container_of(b, struct rsi, h); | 107 | struct rsi *tmp = container_of(b, struct rsi, h); |
108 | return netobj_equal(&item->in_handle, &tmp->in_handle) | 108 | return netobj_equal(&item->in_handle, &tmp->in_handle) && |
109 | && netobj_equal(&item->in_token, &tmp->in_token); | 109 | netobj_equal(&item->in_token, &tmp->in_token); |
110 | } | 110 | } |
111 | 111 | ||
112 | static int dup_to_netobj(struct xdr_netobj *dst, char *src, int len) | 112 | static int dup_to_netobj(struct xdr_netobj *dst, char *src, int len) |