This is an automated email from the ASF dual-hosted git repository.
paziz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 2982b78 Coverity 1200001: redirect_flag can't be 0 at this point
2982b78 is described below
commit 2982b789ffd3d62acde43e07aaf847dc6a527cc5
Author: Syeda Persia Aziz <[email protected]>
AuthorDate: Mon May 29 12:06:19 2017 -0500
Coverity 1200001: redirect_flag can't be 0 at this point
---
plugins/experimental/hipes/hipes.cc | 6 ------
1 file changed, 6 deletions(-)
diff --git a/plugins/experimental/hipes/hipes.cc
b/plugins/experimental/hipes/hipes.cc
index db2e3bf..71df0be 100644
--- a/plugins/experimental/hipes/hipes.cc
+++ b/plugins/experimental/hipes/hipes.cc
@@ -391,12 +391,6 @@ TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo
*rri)
// Alright, now match up this header flag with the request (or
default) flag
TSDebug(PLUGIN_NAME, "Extracted %s header with value %d",
h_conf->x_hipes_header.c_str(), hdr_flag);
switch (redirect_flag) {
- case 0:
- if (hdr_flag == 2) {
- TSHttpTxnSetHttpRetStatus(rh, TS_HTTP_STATUS_BAD_REQUEST);
- has_error = true;
- } // Everything else is a "no"
- break;
case 1:
if (hdr_flag == 2) {
do_redirect = true;
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].