KEYS: testing wrong bit for KEY_FLAG_REVOKED
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2012 13:32:16 +0000 (13:32 +0000)
committerJames Morris <james.l.morris@oracle.com>
Wed, 7 Mar 2012 00:12:06 +0000 (11:12 +1100)
The test for "if (cred->request_key_auth->flags & KEY_FLAG_REVOKED) {"
should actually testing that the (1 << KEY_FLAG_REVOKED) bit is set.
The current code actually checks for KEY_FLAG_DEAD.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>

No differences found