diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-10-11 18:16:02 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-10-11 18:16:02 +0000 |
commit | 6841abe842cd2ae2a79381fa086ad54bbfe01b3a (patch) | |
tree | 668b3483f7da55ae6317a1ded843c23a8570eda2 /crypto/evp | |
parent | cb70355d8721a887a18e7e1afd6876aae26a9332 (diff) |
update pkey method initialisation and copy
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 2 |
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; |