Skip to content

Commit 638787e

Browse files
bigbrettdanielinux
authored andcommitted
cast malloc result
1 parent 0d18b25 commit 638787e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/keytools/keygen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ static void keygen_ml_dsa(const char *priv_fname, uint32_t id_mask)
11091109
exit(1);
11101110
break;
11111111
}
1112-
pubDer = malloc(pubDerSz);
1112+
pubDer = (uint8_t*)malloc(pubDerSz);
11131113
if (pubDer == NULL) {
11141114
fprintf(stderr,
11151115
"Error: Failed to allocate memory for DER export\n");

0 commit comments

Comments
 (0)