mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 20:29:27 +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;
|
function TSSLSocketHandler.Connect: Boolean;
|
||||||
begin
|
begin
|
||||||
Result:=Inherited Connect;
|
Result:=Inherited Connect;
|
||||||
if Result and InitContext(False) then
|
Result := Result and InitContext(False);
|
||||||
|
if Result then
|
||||||
begin
|
begin
|
||||||
Result:=CheckSSL(FSSL.SetFD(FSocket.Handle));
|
Result:=CheckSSL(FSSL.SetFD(FSocket.Handle));
|
||||||
if Result then
|
if Result then
|
||||||
|
Loading…
Reference in New Issue
Block a user