]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Fix the wrong index when checking the existence of second id
authorChun-Yi Lee <joeyli.kernel@gmail.com>
Wed, 4 Oct 2017 11:18:22 +0000 (19:18 +0800)
committerDavid Howells <dhowells@redhat.com>
Wed, 18 Oct 2017 08:12:40 +0000 (09:12 +0100)
commit81e0eb791de889b617329d545069595315f6691b
treee2ba5dd64da5670331c19b9e149353f52e459f8d
parent6b3cab7e80f97fce74334aec6e994d4a5cd8854f
KEYS: Fix the wrong index when checking the existence of second id

Fix the wrong index number when checking the existence of second
id in function of finding asymmetric key. The id_1 is the second
id that the index in array must be 1 but not 0.

Fixes: 72d53c2c36f1 (KEYS: Generalise x509_request_asymmetric_key())
Cc: David Howells <dhowells@redhat.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Chun-Yi Lee <jlee@suse.com>
Signed-off-by: David Howells <dhowells@redhat.com>
crypto/asymmetric_keys/asymmetric_type.c