diff options
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/keyring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/keyring.c b/security/keys/keyring.c index c7a0ab1cfda3..4e9fa8be44b8 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c | |||
@@ -526,7 +526,7 @@ key_ref_t __keyring_search_one(key_ref_t keyring_ref, | |||
526 | (!key->type->match || | 526 | (!key->type->match || |
527 | key->type->match(key, description)) && | 527 | key->type->match(key, description)) && |
528 | key_permission(make_key_ref(key, possessed), | 528 | key_permission(make_key_ref(key, possessed), |
529 | perm) < 0 && | 529 | perm) == 0 && |
530 | !test_bit(KEY_FLAG_REVOKED, &key->flags) | 530 | !test_bit(KEY_FLAG_REVOKED, &key->flags) |
531 | ) | 531 | ) |
532 | goto found; | 532 | goto found; |