cast on return of malloc

This commit is contained in:
Jacob Barthelmeh
2018-05-09 14:50:26 -06:00
parent 4f0893bda5
commit 110c41613f

View File

@@ -16322,7 +16322,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_X509_get_pubkey(WOLFSSL_X509* x509)
byte* der;
derSz = wc_ecc_size(&ecc) * WOLFSSL_BIT_SIZE;
der = XMALLOC(derSz, x509->heap,
der = (byte*)XMALLOC(derSz, x509->heap,
DYNAMIC_TYPE_TMP_BUFFER);
if (der == NULL) {
wc_ecc_free(&ecc);