diff options
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/ar-key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c index 0ad080790a32..eec998efd020 100644 --- a/net/rxrpc/ar-key.c +++ b/net/rxrpc/ar-key.c | |||
@@ -346,7 +346,7 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td, | |||
346 | 346 | ||
347 | n_elem = ntohl(*xdr++); | 347 | n_elem = ntohl(*xdr++); |
348 | toklen -= 4; | 348 | toklen -= 4; |
349 | if (n_elem < 0 || n_elem > max_n_elem) | 349 | if (n_elem > max_n_elem) |
350 | return -EINVAL; | 350 | return -EINVAL; |
351 | *_n_elem = n_elem; | 351 | *_n_elem = n_elem; |
352 | if (n_elem > 0) { | 352 | if (n_elem > 0) { |