summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/ameth_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-04-04 18:32:19 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-04-04 18:32:19 +0000
commit863779065e65d353d4dde6f428a594e427774ce2 (patch)
tree207cbf9efec62782724a36dc078f39805ca28c1f /crypto/asn1/ameth_lib.c
parent0b33dac3100c68ab19a6be804cdeaaa87582b9a0 (diff)
Fix dynamic public key method lookup.
Diffstat (limited to 'crypto/asn1/ameth_lib.c')
-rw-r--r--crypto/asn1/ameth_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/ameth_lib.c b/crypto/asn1/ameth_lib.c
index 6f98872cf1..6b4690e5b7 100644
--- a/crypto/asn1/ameth_lib.c
+++ b/crypto/asn1/ameth_lib.c
@@ -139,8 +139,8 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(int type)
if (app_methods)
{
int idx;
- idx = sk_find(app_methods, (char *)&t);
- if (idx > 0)
+ idx = sk_find(app_methods, (char *)&tmp);
+ if (idx >= 0)
return (EVP_PKEY_ASN1_METHOD *)
sk_value(app_methods, idx);
}