[tor-commits] [meek/utls_2] Check for error in bootstrapConn.

dcf at torproject.org dcf at torproject.org
Fri Jan 25 22:49:58 UTC 2019


commit 6c2cad6ce0e1d0d23ec88edb7942362de2552b0e
Author: David Fifield <david at bamsoftware.com>
Date:   Fri Jan 25 15:42:31 2019 -0700

    Check for error in bootstrapConn.
---
 meek-client/utls.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meek-client/utls.go b/meek-client/utls.go
index 31e93ae..9076549 100644
--- a/meek-client/utls.go
+++ b/meek-client/utls.go
@@ -126,6 +126,9 @@ func makeRoundTripper(req *http.Request, clientHelloID *utls.ClientHelloID) (htt
 	}
 	cfg := &utls.Config{ServerName: req.URL.Hostname()}
 	bootstrapConn, err := dialUTLS("tcp", addr, cfg, clientHelloID)
+	if err != nil {
+		return nil, err
+	}
 
 	// Peek at what protocol we negotiated.
 	protocol := bootstrapConn.ConnectionState().NegotiatedProtocol



More information about the tor-commits mailing list