]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Start ssl_crtd even if only https_port(s) are configured to bump SSL.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 7 Jun 2012 17:46:16 +0000 (11:46 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 7 Jun 2012 17:46:16 +0000 (11:46 -0600)
The right code was deleted during a recent trunk merge.

src/ssl/helper.cc

index 0e25854d8ec364780a8c41bdade640baacf14f19..18414d243914923b302bd38ca857ebc2f3acc8d1 100644 (file)
@@ -28,15 +28,13 @@ void Ssl::Helper::Init()
 {
     assert(ssl_crtd == NULL);
 
-    bool useSslBump = false;
-    for (AnyP::PortCfg *s = ::Config.Sockaddr.http; s; s = s->next) {
-        if (s->sslBump) {
-            useSslBump = true;
-            break;
-        }
-    }
-
-    if (!useSslBump)
+    // we need to start ssl_crtd only if some port(s) need to bump SSL
+    bool found = false;
+    for (AnyP::PortCfg *s = ::Config.Sockaddr.http; !found && s; s = s->next)
+        found = s->sslBump;
+    for (AnyP::PortCfg *s = ::Config.Sockaddr.https; !found && s; s = s->next)
+        found = s->sslBump;
+    if (!found)
         return;
 
     ssl_crtd = new helper("ssl_crtd");