mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-06 04:59:19 +02:00
common/ocsp: fix dropped error
This commit is contained in:
parent
1444552691
commit
06734d6f08
|
@ -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…
Reference in New Issue