HTTPCLIENT-833: fixed possible NPE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@754998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72eedbe0ea
commit
bb15e4d9b3
|
@ -321,7 +321,7 @@ public class SSLSocketFactory implements LayeredSocketFactory {
|
|||
remoteAddress = new InetSocketAddress(host, port);
|
||||
}
|
||||
try {
|
||||
sock.connect(remoteAddress, connTimeout);
|
||||
sslsock.connect(remoteAddress, connTimeout);
|
||||
} catch (SocketTimeoutException ex) {
|
||||
throw new ConnectTimeoutException("Connect to " + remoteAddress + " timed out");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue