mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04: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 {
|
if err != nil {
|
||||||
log.Printf("[ERROR] Purging corrupt staple file %s: %v", stapleFile, err)
|
log.Printf("[ERROR] Purging corrupt staple file %s: %v", stapleFile, err)
|
||||||
}
|
}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
if time.Now().After(resp.NextUpdate) {
|
if time.Now().After(resp.NextUpdate) {
|
||||||
// response has expired; delete it
|
// response has expired; delete it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user