Skip to content

Commit ce935fd

Browse files
cast return of XMALLOC
1 parent a896c16 commit ce935fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/x509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ static int DNS_to_GENERAL_NAME(WOLFSSL_GENERAL_NAME* gn, DNS_entry* dns)
631631
if (gn->d.registeredID == NULL) {
632632
return WOLFSSL_FAILURE;
633633
}
634-
gn->d.registeredID->obj = XMALLOC(dns->len,
634+
gn->d.registeredID->obj = (const unsigned char*)XMALLOC(dns->len,
635635
gn->d.registeredID->heap, DYNAMIC_TYPE_ASN1);
636636
if (gn->d.registeredID->obj == NULL) {
637637
/* registeredID gets free'd up by caller after failure */

0 commit comments

Comments
 (0)