diff options
author | wtc%google.com <devnull@localhost> | 2008-09-07 00:37:37 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-09-07 00:37:37 +0000 |
commit | dc5b3dd6874966a0af63df0914b92e61f6a0b4cb (patch) | |
tree | b6893bd44dacc6da0ff9f4eaf6ccc4840216a693 /security/nss/lib | |
parent | 629a8b8659b797db051d27fda91b7351d59a495d (diff) | |
download | nss-hg-dc5b3dd6874966a0af63df0914b92e61f6a0b4cb.tar.gz |
Bug 453364: pk11_CreateNewContextInSlot should set the error code when it
fails on a NULL 'param' argument. r=nelson.
Diffstat (limited to 'security/nss/lib')
-rw-r--r-- | security/nss/lib/pk11wrap/pk11cxt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11cxt.c b/security/nss/lib/pk11wrap/pk11cxt.c index ea74d194a..6b1837028 100644 --- a/security/nss/lib/pk11wrap/pk11cxt.c +++ b/security/nss/lib/pk11wrap/pk11cxt.c @@ -291,6 +291,7 @@ static PK11Context *pk11_CreateNewContextInSlot(CK_MECHANISM_TYPE type, context->param = (SECItem *)&pk11_null_params; } } else { + PORT_SetError(SEC_ERROR_INVALID_ARGS); context->param = NULL; } context->init = PR_FALSE; |