]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Notice ssl-bump flag in https_port when determining whether to start ssl_crtd.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Dec 2011 17:44:20 +0000 (10:44 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Dec 2011 17:44:20 +0000 (10:44 -0700)
src/ssl/helper.cc

index b6e16e9fea61046fddd3436ed211d4d8069ce177..0deea592e7851b804795687ed2ebf2fd91bfff3f 100644 (file)
@@ -28,15 +28,12 @@ void Ssl::Helper::Init()
 {
     assert(ssl_crtd == NULL);
 
-    bool useSslBump = false;
-    for (http_port_list *s = ::Config.Sockaddr.http; s; s = s->next) {
-        if (s->sslBump) {
-            useSslBump = true;
-            break;
-        }
-    }
-
-    if (!useSslBump)
+    bool found = false;
+    for (http_port_list *s = ::Config.Sockaddr.http; s && !found; s = s->next)
+        found = s->sslBump;
+    for (http_port_list *s = ::Config.Sockaddr.https; s && !found; s = s->next)
+        found = s->sslBump;
+    if (!found)
         return;
 
     ssl_crtd = new helper("ssl_crtd");