From 7138b66b5e033f85391ac92a0971067ecd5acb25 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Fri, 31 Mar 2023 11:22:58 -0400 Subject: [PATCH] Compiler error --- src/ssl_asn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_asn1.c b/src/ssl_asn1.c index 9d8cb554d..213ccebe0 100644 --- a/src/ssl_asn1.c +++ b/src/ssl_asn1.c @@ -2364,7 +2364,7 @@ char* wolfSSL_i2s_ASN1_STRING(WOLFSSL_v3_ext_method *method, } /* Handle 0 length data separately. */ else if (s->length == 0) { - ret = XMALLOC(1, NULL, DYNAMIC_TYPE_TMP_BUFFER); + ret = (char *)XMALLOC(1, NULL, DYNAMIC_TYPE_TMP_BUFFER); if (ret != NULL) { ret[0] = '\0'; }