From 02079a2f796f2803493c73340cfcf6eef06d864f Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 25 May 2012 13:38:44 -0700 Subject: [PATCH] c++ cast fix --- ctaocrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index 73e3065f6..be6aa75a8 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -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;