[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 6c2cad6ce0e1d0d23ec88edb7942362de2552b0e
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits