mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-25 19:55:35 +00:00
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 Socket connectSocket(
|
||||
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…
x
Reference in New Issue
Block a user