]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix tls/ssl flags parsing
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 12 Jan 2016 17:35:06 +0000 (19:35 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 12 Jan 2016 17:35:06 +0000 (19:35 +0200)
Tls flags listed using the [tls-|tls|ssl]flags option are not configured
correctly. In practice always the SSL_FLAG_NO_DEFAULT_CA even if no
selected and all other flags are ingored

src/security/PeerOptions.cc

index 43c2897fe162d2778a84fc08da6fa8d9ec3d181d..c1526848393197f5f0a201cc1f2bd127eb0b8520 100644 (file)
@@ -492,7 +492,7 @@ Security::PeerOptions::parseFlags()
     do {
         long found = 0;
         for (size_t i = 0; flagTokens[i].mask; ++i) {
-            if (tok.skip(flagTokens[i].label) == 0) {
+            if (tok.skip(flagTokens[i].label)) {
                 found = flagTokens[i].mask;
                 break;
             }