You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2016/12/22 17:20:51 UTC

[trafficserver] branch master updated: TS-5018: Fix CID 1365301: Control flow issues (DEADCODE)

This is an automated email from the ASF dual-hosted git repository.

amc pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  9084c72   TS-5018: Fix CID 1365301: Control flow issues (DEADCODE)
9084c72 is described below

commit 9084c7282033d716e5567a2664319a6200f8c362
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Fri Oct 28 07:25:52 2016 +0900

    TS-5018: Fix CID 1365301: Control flow issues (DEADCODE)
---
 plugins/header_rewrite/parser.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/plugins/header_rewrite/parser.cc b/plugins/header_rewrite/parser.cc
index 28a78a2..3929f29 100644
--- a/plugins/header_rewrite/parser.cc
+++ b/plugins/header_rewrite/parser.cc
@@ -62,9 +62,6 @@ Parser::Parser(const std::string &original_line) : _cond(false), _empty(false)
         _tokens.push_back(line.substr(cur_token_start, cur_token_length));
         state            = PARSER_DEFAULT;
         extracting_token = false;
-      } else if (!extracting_token) {
-        // /'s elsewhere are just consumed, but we should not end up here if we're not extracting a token
-        TSError("[%s] malformed regex \"%s\" ignoring...", PLUGIN_NAME, line.c_str());
       }
     } else if ((state != PARSER_IN_REGEX) && (line[i] == '\\')) {
       // Escaping

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].