summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-11 18:15:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-11 18:15:31 +0000
commit3231e42d726dcb1c9fd064ea8350d4f362718443 (patch)
tree5cb4ca5a7c05086d09f22f3b605d9489f28b6bfd /crypto/evp
parentcd366cf7ec34d12e9c588ba487bc332bc67a1fd3 (diff)
update pkey method initialisation and copy
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/pmeth_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c
index 9820f69b04..acfa7b6f87 100644
--- a/crypto/evp/pmeth_lib.c
+++ b/crypto/evp/pmeth_lib.c
@@ -204,6 +204,8 @@ EVP_PKEY_METHOD* EVP_PKEY_meth_new(int id, int flags)
if (!pmeth)
return NULL;
+ memset(pmeth, 0, sizeof(EVP_PKEY_METHOD));
+
pmeth->pkey_id = id;
pmeth->flags = flags | EVP_PKEY_FLAG_DYNAMIC;