Browse Source

common/ocsp: fix dropped error

pull/2795/head
Lars Lehtonen 12 months ago committed by yuhan6665
parent
commit
06734d6f08
  1. 3
      common/ocsp/ocsp.go

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

Loading…
Cancel
Save