From 9f9a17ed6b54d1512056645a0a70209b1bd8f301 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 11 Jun 2020 11:03:17 +0200 Subject: [PATCH] doh_client_x509_auth: don't ignore errors --- dnscrypt-proxy/xtransport.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index 91551ce7..d59dc65b 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -171,6 +171,9 @@ func (xTransport *XTransport) rebuildTransport() { dlog.Fatal(err) } systemCertPool, err := x509.SystemCertPool() + if err != nil { + dlog.Fatal(err) + } systemCertPool.AppendCertsFromPEM(caCert) tlsClientConfig.RootCAs = systemCertPool }