mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05:00
tls: Avoid nil pointer deref when parsing corrupt OCSP staple files
Fixes #2041
This commit is contained in:
parent
d3f338ddab
commit
37b291f82c
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue