summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/certhigh/ocsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/certhigh/ocsp.c b/lib/certhigh/ocsp.c
index f6c8bfeb8..177f03d77 100644
--- a/lib/certhigh/ocsp.c
+++ b/lib/certhigh/ocsp.c
@@ -5087,6 +5087,9 @@ CERT_CheckOCSPStatus(CERTCertDBHandle *handle, CERTCertificate *cert,
}
if (cachedResponseFreshness == ocspFresh) {
CERT_DestroyOCSPCertID(certID);
+ if (rvOcsp != SECSuccess) {
+ PORT_SetError(cachedErrorCode);
+ }
return rvOcsp;
}