mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-30 02:32:30 -04:00
tls: Avoid nil pointer deref when parsing corrupt OCSP staple files
Fixes #2041
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user