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

zwoop 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  132938a   TS-5069: Fixes CID 1366771 and 1366771
132938a is described below

commit 132938a086d80b37125d8a3674e00e8d0c018806
Author: Leif Hedstrom <[email protected]>
AuthorDate: Sat Dec 3 16:02:36 2016 -0700

    TS-5069: Fixes CID 1366771 and 1366771
---
 proxy/logstats.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/proxy/logstats.cc b/proxy/logstats.cc
index 60cb483..54cc262 100644
--- a/proxy/logstats.cc
+++ b/proxy/logstats.cc
@@ -1184,7 +1184,7 @@ find_or_create_stats(const char *key)
       memset(o_stats, 0, sizeof(OriginStats));
       init_elapsed(o_stats);
       o_server = ats_strdup(key);
-      if (o_stats && o_server) {
+      if (o_server) {
         o_stats->server   = o_server;
         origins[o_server] = o_stats;
       }
@@ -1584,7 +1584,6 @@ parse_log_buff(LogBufferHeader *buf_header, bool summary 
= false, bool aggregate
             break;
           default:
             tok_len = 5 + strlen(tok);
-            ;
             update_counter(totals.content.text.other, size);
             if (o_stats != NULL) {
               update_counter(o_stats->content.text.other, size);
@@ -1606,10 +1605,12 @@ parse_log_buff(LogBufferHeader *buf_header, bool 
summary = false, bool aggregate
             }
             break;
           case JAVA_AS_INT:
+            tok_len = 22;
             update_counter(totals.content.application.javascript, size);
             if (o_stats != NULL) {
               update_counter(o_stats->content.application.javascript, size);
             }
+            break;
           case X_JA_AS_INT:
             tok_len = 24;
             update_counter(totals.content.application.javascript, size);

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

Reply via email to