Skip to content

Commit

Permalink
cast return of XMALLOC
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Nov 11, 2024
1 parent a896c16 commit ce935fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static int DNS_to_GENERAL_NAME(WOLFSSL_GENERAL_NAME* gn, DNS_entry* dns)
if (gn->d.registeredID == NULL) {
return WOLFSSL_FAILURE;
}
gn->d.registeredID->obj = XMALLOC(dns->len,
gn->d.registeredID->obj = (const unsigned char*)XMALLOC(dns->len,
gn->d.registeredID->heap, DYNAMIC_TYPE_ASN1);
if (gn->d.registeredID->obj == NULL) {
/* registeredID gets free'd up by caller after failure */
Expand Down

0 comments on commit ce935fd

Please sign in to comment.