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 <[email protected]> Authored: Wed Nov 12 12:00:17 2014 -0800 Committer: James Peach <[email protected]> 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
