mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Fix bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user