Browse Source

* Fix wrong return value in case of multithreaded initialize. Fixes issue #40676

Michaël Van Canneyt 1 year ago
parent
commit
29b14fec57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/openssl/src/openssl.pas

+ 1 - 1
packages/openssl/src/openssl.pas

@@ -5859,7 +5859,7 @@ begin
   EnterCriticalSection(SSLCS);
   EnterCriticalSection(SSLCS);
   try
   try
     if SSLloaded then
     if SSLloaded then
-      Exit;
+      Exit(True);
     Result:=LoadLibraries(aSSLName,aCryptoName);
     Result:=LoadLibraries(aSSLName,aCryptoName);
     if Not Result then
     if Not Result then
       begin
       begin