summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Sleevi <ryan.sleevi@gmail.com>2014-03-10 12:43:10 -0700
committerRyan Sleevi <ryan.sleevi@gmail.com>2014-03-10 12:43:10 -0700
commit318c12aa9d890db0f1e26c67156306f695c37a4b (patch)
treebe49dce13ac69b9a9ec3703904ab11848f86d3c2
parent3f0168e833f2f4c731bfd6c43313b5facfa579b1 (diff)
downloadnss-hg-318c12aa9d890db0f1e26c67156306f695c37a4b.tar.gz
Bug 981170: AESKeyWrap_Decrypt returns SECSuccess for invalid keys.
r=wtc
-rw-r--r--lib/freebl/aeskeywrap.c1
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;