trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [trafficserver] 01/02: Coverity CID #1021870 Dereference null return value
Date Thu, 11 May 2017 07:08:54 GMT
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

commit efcf60ae2f2f56c803ff6f2a548843eb31d753ff
Author: Phil Sorber <sorber@apache.org>
AuthorDate: Wed May 10 14:58:51 2017 -0600

    Coverity CID #1021870 Dereference null return value
---
 iocore/cache/CacheDir.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iocore/cache/CacheDir.cc b/iocore/cache/CacheDir.cc
index 5abeeee..da55c57 100644
--- a/iocore/cache/CacheDir.cc
+++ b/iocore/cache/CacheDir.cc
@@ -187,6 +187,7 @@ dir_bucket_loop_check(Dir *start_dir, Dir *seg)
 
   while (p2) {
     // p1 moves by one entry per iteration
+    ink_assert(p1);
     p1 = next_dir(p1, seg);
     // p2 moves by two entries per iteration
     p2 = next_dir(p2, seg);

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

Mime
View raw message