]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TLS: do not hang when 'connector' fails
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 27 Jul 2016 12:24:50 +0000 (00:24 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 27 Jul 2016 12:24:50 +0000 (00:24 +1200)
src/security/PeerConnector.cc

index 75cedd72ba26554e43dca112cd0c8e2fcdb0ea28..b3332088aeccf39b4e44f77fb2d27361fd6feae9 100644 (file)
@@ -59,6 +59,8 @@ Security::PeerConnector::start()
     Security::SessionPointer tmp;
     if (prepareSocket() && initializeTls(tmp))
         negotiateSsl();
+    else
+        mustStop("Security::PeerConnector TLS socket initialize failed");
 }
 
 void