You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by dr...@apache.org on 2018/05/10 13:50:23 UTC

[trafficserver] branch master updated: coverity-1022121 Fix null check

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

dragon 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 3884479  coverity-1022121 Fix null check
3884479 is described below

commit 3884479727443ac32b95de83f39db217224c55e6
Author: Jason Kenny <dr...@live.com>
AuthorDate: Thu May 10 12:49:07 2018 +0100

    coverity-1022121 Fix null check
---
 iocore/cache/CacheHosting.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iocore/cache/CacheHosting.cc b/iocore/cache/CacheHosting.cc
index c5aa327..f670289 100644
--- a/iocore/cache/CacheHosting.cc
+++ b/iocore/cache/CacheHosting.cc
@@ -495,6 +495,9 @@ CacheHostRecord::Init(matcher_line *line_info, CacheType typ)
         }
         s++;
       }
+      if (val == nullptr) {
+        return -1;
+      }
       s = val;
       num_cachevols++;
       cp = (CacheVol **)ats_malloc(num_cachevols * sizeof(CacheVol *));

-- 
To stop receiving notification emails like this one, please contact
dragon@apache.org.