From 06734d6f08287387441c42a1da8e97274812e4ab Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 8 Dec 2023 09:07:51 -0800 Subject: [PATCH] common/ocsp: fix dropped error --- common/ocsp/ocsp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/ocsp/ocsp.go b/common/ocsp/ocsp.go index 02140c0d..b2c0bc58 100644 --- a/common/ocsp/ocsp.go +++ b/common/ocsp/ocsp.go @@ -28,6 +28,9 @@ func GetOCSPStapling(cert [][]byte, path string) ([]byte, error) { ocspData, err := GetOCSPForFile(path) if err != nil { ocspData, err = GetOCSPForCert(cert) + if err != nil { + return nil, err + } if !CheckOCSPFileIsNotExist(path) { err = os.Remove(path) if err != nil {