mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 01:12:48 +08:00
tls: Avoid nil pointer deref when parsing corrupt OCSP staple files
Fixes #2041
This commit is contained in:
parent
d3f338ddab
commit
37b291f82c
|
@ -334,6 +334,7 @@ func DeleteOldStapleFiles() {
|
|||
if err != nil {
|
||||
log.Printf("[ERROR] Purging corrupt staple file %s: %v", stapleFile, err)
|
||||
}
|
||||
continue
|
||||
}
|
||||
if time.Now().After(resp.NextUpdate) {
|
||||
// response has expired; delete it
|
||||
|
|
Loading…
Reference in New Issue
Block a user