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:
dongheng
2016-09-23 11:03:13 +08:00
parent 07c8bbca6c
commit f5d9bfc7ae
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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");