From 37b291f82c2083a378b698577640389686b0baf4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 21 Feb 2018 10:53:12 -0700 Subject: [PATCH] tls: Avoid nil pointer deref when parsing corrupt OCSP staple files Fixes #2041 --- caddytls/maintain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/caddytls/maintain.go b/caddytls/maintain.go index 5e867d4b..b24b6212 100644 --- a/caddytls/maintain.go +++ b/caddytls/maintain.go @@ -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