mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 19:29:33 +02:00
* When InitContext fails, TSSLSocketHandler.Connect should return false.
git-svn-id: trunk@36851 -
This commit is contained in:
parent
c98e9b230f
commit
4d2d45da0b
@ -221,7 +221,8 @@ end;
|
||||
function TSSLSocketHandler.Connect: Boolean;
|
||||
begin
|
||||
Result:=Inherited Connect;
|
||||
if Result and InitContext(False) then
|
||||
Result := Result and InitContext(False);
|
||||
if Result then
|
||||
begin
|
||||
Result:=CheckSSL(FSSL.SetFD(FSocket.Handle));
|
||||
if Result then
|
||||
|
Loading…
Reference in New Issue
Block a user