trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: Fix a static analyzer warning
Date Wed, 12 Nov 2014 20:00:26 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 1fc0fd0fe -> d37a70a7a


Fix a static analyzer warning


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d37a70a7
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d37a70a7
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d37a70a7

Branch: refs/heads/master
Commit: d37a70a7ae6ec5876dfb69f1a561d7d1566edd86
Parents: 1fc0fd0
Author: James Peach <jpeach@apache.org>
Authored: Wed Nov 12 12:00:17 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Wed Nov 12 12:00:17 2014 -0800

----------------------------------------------------------------------
 lib/ts/ink_cap.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d37a70a7/lib/ts/ink_cap.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_cap.cc b/lib/ts/ink_cap.cc
index 66af2e2..a27d64e 100644
--- a/lib/ts/ink_cap.cc
+++ b/lib/ts/ink_cap.cc
@@ -160,6 +160,8 @@ impersonate(const struct passwd * pwd, ImpersonationLevel level)
   DEBUG_CREDENTIALS("privileges");
   DEBUG_PRIVILEGES("privileges");
 
+  ink_release_assert(pwd != NULL);
+
 #if defined(PR_GET_DUMPABLE)
   dumpable = (prctl(PR_GET_DUMPABLE) == 1);
 #endif


Mime
View raw message