mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-18 00:19:56 +00:00
Fix crash of rsaperf on keygen failure
This commit is contained in:
parent
3a142f36bf
commit
af93fc8e3b
@ -49,7 +49,7 @@
|
||||
#define DEFAULT_DURATION 10
|
||||
#define DEFAULT_KEY_BITS 1024
|
||||
#define MIN_KEY_BITS 512
|
||||
#define MAX_KEY_BITS 8192
|
||||
#define MAX_KEY_BITS 65536
|
||||
#define BUFFER_BYTES MAX_KEY_BITS / 8
|
||||
#define DEFAULT_THREADS 1
|
||||
#define DEFAULT_EXPONENT 0x10001
|
||||
@ -542,7 +542,7 @@ main(int argc, char **argv)
|
||||
if (!privHighKey) {
|
||||
fprintf(stderr,
|
||||
"Key generation failed in token \"%s\"\n",
|
||||
PK11_GetTokenName(privHighKey->pkcs11Slot));
|
||||
PK11_GetTokenName(slot));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user