Fix for XMALLOC cast.

This commit is contained in:
David Garske
2020-04-27 06:48:41 -07:00
parent a4caa42793
commit 1e726e19a4

View File

@ -1322,7 +1322,7 @@ static int _SaveDerAndPem(const byte* der, int derSz,
if (pemSz < 0) {
return pemSz;
}
pem = XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
pem = (byte*)XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
if (pem == NULL) {
return MEMORY_E;
}