mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Fix bugs
This commit is contained in:
@@ -57,7 +57,7 @@ int skfutil_main(int argc, char **argv)
|
||||
unsigned char buf[4096];
|
||||
size_t len;
|
||||
|
||||
uint8_t authkey[16];
|
||||
uint8_t authkey[16] = {0};
|
||||
size_t authkeylen;
|
||||
SKF_DEVICE dev;
|
||||
SKF_KEY key;
|
||||
@@ -237,6 +237,10 @@ bad:
|
||||
fprintf(stderr, "%s: inner error\n", prog);
|
||||
goto end;
|
||||
}
|
||||
if (fwrite(sig, 1, siglen, outfp) != siglen) {
|
||||
fprintf(stderr, "%s: output failure\n", prog);
|
||||
goto end;
|
||||
}
|
||||
ret = 0;
|
||||
goto end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user