summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-03-15 16:03:43 -0700
committerBrian Carlstrom <bdc@google.com>2012-03-21 11:09:32 -0700
commit392aa7cc7d2b122614c5393c3e357da07fd07af3 (patch)
tree69f0b217fb624fdc56abb9f659c9bdea1b1865aa /crypto/ocsp
parent7f1d63479ce92a2a4a0874b007e49f8acb13a0d9 (diff)
downloadreplicant_openssl-392aa7cc7d2b122614c5393c3e357da07fd07af3.zip
replicant_openssl-392aa7cc7d2b122614c5393c3e357da07fd07af3.tar.gz
replicant_openssl-392aa7cc7d2b122614c5393c3e357da07fd07af3.tar.bz2
openssl-1.0.1 upgrade
Bug: 6168278 Change-Id: I648f9172828120df5d19a14425e9ceec92647921
Diffstat (limited to 'crypto/ocsp')
-rw-r--r--crypto/ocsp/ocsp_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_lib.c b/crypto/ocsp/ocsp_lib.c
index e92b86c..a94dc83 100644
--- a/crypto/ocsp/ocsp_lib.c
+++ b/crypto/ocsp/ocsp_lib.c
@@ -124,7 +124,8 @@ OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,
if (!(ASN1_OCTET_STRING_set(cid->issuerNameHash, md, i))) goto err;
/* Calculate the issuerKey hash, excluding tag and length */
- EVP_Digest(issuerKey->data, issuerKey->length, md, &i, dgst, NULL);
+ if (!EVP_Digest(issuerKey->data, issuerKey->length, md, &i, dgst, NULL))
+ goto err;
if (!(ASN1_OCTET_STRING_set(cid->issuerKeyHash, md, i))) goto err;