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:
Oleg Kalnichevski 2009-03-16 20:33:39 +00:00
parent 72eedbe0ea
commit bb15e4d9b3
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}