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

sorber 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  c212ac9   Coverity CID #1375003 Structurally dead code
c212ac9 is described below

commit c212ac9e9251db0ba9d5f0498109c1f9c17d2c9e
Author: Phil Sorber <[email protected]>
AuthorDate: Thu May 11 21:03:22 2017 -0600

    Coverity CID #1375003 Structurally dead code
---
 example/passthru/passthru.cc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/example/passthru/passthru.cc b/example/passthru/passthru.cc
index 14a0a2c..9991ca5 100644
--- a/example/passthru/passthru.cc
+++ b/example/passthru/passthru.cc
@@ -215,16 +215,16 @@ PassthruSessionEvent(TSCont cont, TSEvent event, void 
*edata)
       TSVIOReenable(sp->server.readio.vio);
       TSVIOReenable(sp->client.writeio.vio);
     }
-  }
 
-  if (PassthruSessionIsFinished(sp)) {
-    delete sp;
+    if (PassthruSessionIsFinished(sp)) {
+      delete sp;
+      return TS_EVENT_NONE;
+    }
+
+    TSVIOReenable(arg.vio);
     return TS_EVENT_NONE;
   }
 
-  TSVIOReenable(arg.vio);
-  return TS_EVENT_NONE;
-
   if (event == TS_EVENT_VCONN_WRITE_READY) {
     if (PassthruSessionIsFinished(sp)) {
       delete sp;

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to