]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix switch wrapping in log Format custom
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Dec 2010 01:52:37 +0000 (18:52 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Dec 2010 01:52:37 +0000 (18:52 -0700)
src/log/FormatSquidCustom.cc

index a6bed889f7a577e20cde8020ab922aa2cda58416..f1a031ceac584717455d0fd0af231791c28e1130 100644 (file)
@@ -760,7 +760,7 @@ Log::Format::SquidCustom(AccessLogEntry * al, customlog * log)
                     newout = rfc1738_escape_unescaped(out);
                     break;
 
-                case LOG_QUOTE_QUOTES:
+                case LOG_QUOTE_QUOTES: {
                     size_t out_len = static_cast<size_t>(strlen(out)) * 2 + 1;
                     if (out_len >= sizeof(tmp)) {
                         newout = (char *)xmalloc(out_len);
@@ -768,7 +768,8 @@ Log::Format::SquidCustom(AccessLogEntry * al, customlog * log)
                     } else
                         newout = tmp;
                     log_quoted_string(out, newout);
-                    break;
+                }
+                break;
 
                 case LOG_QUOTE_MIMEBLOB:
                     newout = Log::QuoteMimeBlob(out);