mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 12:25:03 +02:00
components/openssl: fix SSL get peer cert struct point type error
1. fix SSL get peer cert struct point type error 2. some function use "zalloc" instead of "malloc"
This commit is contained in:
@@ -31,7 +31,7 @@ EVP_PKEY* EVP_PKEY_new(void)
|
||||
int ret;
|
||||
EVP_PKEY *pkey;
|
||||
|
||||
pkey = ssl_malloc(sizeof(EVP_PKEY));
|
||||
pkey = ssl_zalloc(sizeof(EVP_PKEY));
|
||||
if (!pkey)
|
||||
SSL_RET(failed1, "ssl_malloc\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user