From: Dr. Stephen Henson Date: Tue, 4 Apr 2006 18:32:19 +0000 (+0000) Subject: Fix dynamic public key method lookup. X-Git-Tag: OpenSSL_0_9_8k^2~1447 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=863779065e65d353d4dde6f428a594e427774ce2;p=openssl Fix dynamic public key method lookup. --- 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); }