summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-11 18:16:02 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-11 18:16:02 +0000
commit6841abe842cd2ae2a79381fa086ad54bbfe01b3a (patch)
tree668b3483f7da55ae6317a1ded843c23a8570eda2 /crypto/evp
parentcb70355d8721a887a18e7e1afd6876aae26a9332 (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;