summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian.mcgreer%sun.com <devnull@localhost>2002-09-06 14:10:14 +0000
committerian.mcgreer%sun.com <devnull@localhost>2002-09-06 14:10:14 +0000
commit92da47dae0edf617972836b23d0a7c0ee3a88c7f (patch)
tree27783f1ebe97fb2b5a1569367e069f82c92d9186
parent2e23efd88b6a54431b663a2fd476563504b63b05 (diff)
downloadnss-hg-92da47dae0edf617972836b23d0a7c0ee3a88c7f.tar.gz
additional patch for bug 166768
-rw-r--r--security/nss/cmd/bltest/blapitest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/cmd/bltest/blapitest.c b/security/nss/cmd/bltest/blapitest.c
index be1e4b1d9..d13f37276 100644
--- a/security/nss/cmd/bltest/blapitest.c
+++ b/security/nss/cmd/bltest/blapitest.c
@@ -1189,6 +1189,7 @@ md5_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
cx_cpy = MD5_Resurrect(cxbytes, NULL);
if (!cx_cpy) {
PR_fprintf(PR_STDERR, "%s: MD5_Resurrect failed!\n", progName);
+ rv = SECFailure;
goto finish;
}
rv = PORT_Memcmp(cx, cx_cpy, len);
@@ -1226,6 +1227,7 @@ sha1_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
cx_cpy = SHA1_Resurrect(cxbytes, NULL);
if (!cx_cpy) {
PR_fprintf(PR_STDERR, "%s: SHA1_Resurrect failed!\n", progName);
+ rv = SECFailure;
goto finish;
}
rv = PORT_Memcmp(cx, cx_cpy, len);