diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-06 18:10:18 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-06 18:10:18 -0500 |
commit | 92818dff6962495949da5c518732097d5e52a721 (patch) | |
tree | da07c6269852a5e68d5db8855a8c53b78517c73b /diff-pem2html.go | |
parent | 74fa9411545e30c64c75eae0b2b1dfccd8741a2f (diff) |
Correctly deal with failing to get a cert (eg: because of a timeout)
Diffstat (limited to 'diff-pem2html.go')
-rw-r--r-- | diff-pem2html.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/diff-pem2html.go b/diff-pem2html.go index 3b7716b..50c521b 100644 --- a/diff-pem2html.go +++ b/diff-pem2html.go @@ -89,7 +89,9 @@ func main() { } cert.X509, err = x509.ParseCertificate(certPem.Bytes) - handleErr(err, "Error parsing cert: %v\n") + if err != nil { + cert.X509 = new(x509.Certificate) + } certs = append(certs, cert) } |