diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-08-04 16:33:47 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-26 11:44:46 +0100 |
commit | abe2f710ada530aa4c3ecdf16800548734f91071 (patch) | |
tree | c662b174bd91acc4c8cb8342907bb9c3b08da6c2 | |
parent | c97bc4b62a8060222bd5c34925eaf9aa048c3731 (diff) | |
download | gnutls-abe2f710ada530aa4c3ecdf16800548734f91071.tar.gz |
pkcs8: initialize parameters on decryption
-rw-r--r-- | lib/x509/privkey_pkcs8.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index 8684422b2f..7e232eb2f7 100644 --- a/lib/x509/privkey_pkcs8.c +++ b/lib/x509/privkey_pkcs8.c @@ -749,6 +749,7 @@ read_pkcs_schema_params (schema_id * schema, const char *password, case PKCS12_3DES_SHA1: case PKCS12_ARCFOUR_SHA1: case PKCS12_RC2_40_SHA1: + memset(enc_params, 0, sizeof(*enc_params)); if ((*schema) == PKCS12_3DES_SHA1) { |