mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
Bug 104103 - [r=rrelyea a=dolske]
This commit is contained in:
parent
6bddf299cd
commit
7b173b9a32
@ -696,6 +696,10 @@ cryptojs_generateOneKeyPair(JSContext *cx, nsKeyPairInfo *keyPairInfo,
|
||||
(params) ? strlen(params):0,
|
||||
keySize, keyPairInfo);
|
||||
|
||||
if (!keyGenParams) {
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
// Make sure the token has password already set on it before trying
|
||||
// to generate the key.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user