Commit 37b291f8 authored by Matthew Holt's avatar Matthew Holt

tls: Avoid nil pointer deref when parsing corrupt OCSP staple files

Fixes #2041
parent d3f338dd
...@@ -334,6 +334,7 @@ func DeleteOldStapleFiles() { ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment