c++ cast fix

pull/1/head v2.2.2
toddouska 2012-05-25 13:38:44 -07:00
parent 82a56daaaf
commit 02079a2f79
1 changed files with 1 additions and 1 deletions

View File

@ -4718,7 +4718,7 @@ static int GetRevoked(const byte* buff, word32* idx, DecodedCRL* dcrl,
return ASN_PARSE_E;
}
rc = XMALLOC(sizeof(RevokedCert), NULL, DYNAMIC_TYPE_CRL);
rc = (RevokedCert*)XMALLOC(sizeof(RevokedCert), NULL, DYNAMIC_TYPE_CRL);
if (rc == NULL) {
CYASSL_MSG("Alloc Revoked Cert failed");
return MEMORY_E;