This commit is contained in:
Zhi Guan
2026-06-17 16:37:14 +08:00
parent 40a62baec7
commit 765e4d7747
5 changed files with 14 additions and 2 deletions

View File

@@ -171,6 +171,10 @@ bad:
while ((len = fread(buf, 1, sizeof(buf), infp)) > 0) {
ghash_update(&ghash_ctx, buf, len);
}
if (ferror(infp)) {
fprintf(stderr, "gmssl %s: read failure : %s\n", prog, strerror(errno));
goto end;
}
memset(buf, 0, sizeof(buf));
}
ghash_finish(&ghash_ctx, dgst);