projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix dynamic public key method lookup.
[openssl.git]
/
crypto
/
asn1
/
ameth_lib.c
diff --git
a/crypto/asn1/ameth_lib.c
b/crypto/asn1/ameth_lib.c
index 6f98872cf10baf235966a0c56eb8ffc2a2fdbf22..6b4690e5b7680240db24e3868081bd3b8ac54e04 100644
(file)
--- 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 *)&t
mp
);
+ if (idx >
=
0)
return (EVP_PKEY_ASN1_METHOD *)
sk_value(app_methods, idx);
}