common/ocsp: fix dropped error

This commit is contained in:
Lars Lehtonen 2023-12-08 09:07:51 -08:00 committed by yuhan6665
parent 1444552691
commit 06734d6f08

View File

@ -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 {