diff options
author | Ryan Sleevi <ryan.sleevi@gmail.com> | 2014-03-10 12:43:10 -0700 |
---|---|---|
committer | Ryan Sleevi <ryan.sleevi@gmail.com> | 2014-03-10 12:43:10 -0700 |
commit | 318c12aa9d890db0f1e26c67156306f695c37a4b (patch) | |
tree | be49dce13ac69b9a9ec3703904ab11848f86d3c2 | |
parent | 3f0168e833f2f4c731bfd6c43313b5facfa579b1 (diff) | |
download | nss-hg-318c12aa9d890db0f1e26c67156306f695c37a4b.tar.gz |
Bug 981170: AESKeyWrap_Decrypt returns SECSuccess for invalid keys.
r=wtc
-rw-r--r-- | lib/freebl/aeskeywrap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/freebl/aeskeywrap.c b/lib/freebl/aeskeywrap.c index 16804f529..c1c95b351 100644 --- a/lib/freebl/aeskeywrap.c +++ b/lib/freebl/aeskeywrap.c @@ -369,6 +369,7 @@ AESKeyWrap_Decrypt(AESKeyWrapContext *cx, unsigned char *output, if (pOutputLen) *pOutputLen = outLen; } else { + s = SECFailure; PORT_SetError(SEC_ERROR_BAD_DATA); if (pOutputLen) *pOutputLen = 0; |