]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/log/Config.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / log / Config.cc
index a1ed0fe0b549ba82b897da9646af47ea77603430..f06a06a13a0dc4e2e476436b68b25db52e0662fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -22,6 +22,7 @@ Log::LogConfig::parseFormats()
     if (!(name = ConfigParser::NextToken())) {
         debugs(3, DBG_CRITICAL, "FATAL: missing logformat details in " << cfg_filename << " line " << config_lineno);
         self_destruct();
+        return;
     }
 
     // check for re-definition of built-in formats