*Web: bug fix - default HTTPS port number

*Web: added ugly hack to get rid of SSL memory leaks

git-svn-id: svn://ultimatepp.org/upp/trunk@3553 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2011-06-23 00:32:01 +00:00
parent 96c2c70e11
commit 33a280f1fc
5 changed files with 62 additions and 24 deletions

View file

@ -20,7 +20,8 @@ bool HttpsClient::CreateClientSocket()
return false;
}
}
if(!SSLClientSocket(socket, *ssl_context, socket_host, socket_port, true, NULL, 0, false)) {
if(!SSLClientSocket(socket, *ssl_context, socket_host,
socket_port ? socket_port : DEFAULT_HTTPS_PORT, true, NULL, 0, false)) {
error = Socket::GetErrorText();
return false;
}