Skip to content

Commit

Permalink
cast malloc result
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett authored and danielinux committed Dec 16, 2024
1 parent 0d18b25 commit 638787e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/keytools/keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ static void keygen_ml_dsa(const char *priv_fname, uint32_t id_mask)
exit(1);
break;
}
pubDer = malloc(pubDerSz);
pubDer = (uint8_t*)malloc(pubDerSz);
if (pubDer == NULL) {
fprintf(stderr,
"Error: Failed to allocate memory for DER export\n");
Expand Down

0 comments on commit 638787e

Please sign in to comment.