- bug in check_key_compatibility()

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@561 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-04-18 09:12:26 +00:00
parent 94cb1e0219
commit b08c5ef702
1 changed files with 1 additions and 2 deletions

View File

@ -777,8 +777,7 @@ check_key_compatibility(struct sc_pkcs15_card *p15card,
unsigned int count;
count = p15card->card->algorithm_count;
info = p15card->card->algorithms;
while (count--) {
for (info = p15card->card->algorithms; count--; info++) {
/* XXX: check for equality, or <= ? */
if (info->algorithm != key->algorithm
|| info->key_length != key_length)