aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_pbe.c
diff options
context:
space:
mode:
authorDaniel Fiala <daniel@openssl.org>2022-06-27 13:36:48 +0200
committerTomas Mraz <tomas@openssl.org>2022-06-28 17:45:04 +0200
commit3211266aa23253ce8af2b98c4fd94a12a4afa7e4 (patch)
tree2fa601d294b8caf638418b75ad3b95dec9f1b33d /crypto/evp/evp_pbe.c
parent30532e59f475e0066c030693e4d614311a9e0cae (diff)
downloadopenssl-3211266aa23253ce8af2b98c4fd94a12a4afa7e4.tar.gz
Allocate EVP_PBE_CTL with OPENSSL_zalloc.
Fixes openssl#18598. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18666)
Diffstat (limited to 'crypto/evp/evp_pbe.c')
-rw-r--r--crypto/evp/evp_pbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_pbe.c b/crypto/evp/evp_pbe.c
index 991ae2bd6c..87b1856c19 100644
--- a/crypto/evp/evp_pbe.c
+++ b/crypto/evp/evp_pbe.c
@@ -204,7 +204,7 @@ int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
goto err;
}
- if ((pbe_tmp = OPENSSL_malloc(sizeof(*pbe_tmp))) == NULL)
+ if ((pbe_tmp = OPENSSL_zalloc(sizeof(*pbe_tmp))) == NULL)
goto err;
pbe_tmp->pbe_type = pbe_type;