This is an automated email from the ASF dual-hosted git repository. zwoop 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 52795d8 Fixes null pointer dereference in print_http_hdr 52795d8 is described below commit 52795d8bc0c07894fffba4ab09ab2bef18528724 Author: Randall Meyer <randallme...@yahoo.com> AuthorDate: Mon May 7 16:01:39 2018 +0100 Fixes null pointer dereference in print_http_hdr issue found by clang-analyzer --- proxy/CoreUtils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/CoreUtils.cc b/proxy/CoreUtils.cc index c6afdc9..ff0f09f 100644 --- a/proxy/CoreUtils.cc +++ b/proxy/CoreUtils.cc @@ -476,7 +476,7 @@ CoreUtils::print_http_hdr(HTTPHdr *h, const char *name) if (h->m_heap && h->m_http) { int r = load_http_hdr(h, &new_handle); - if (r > 0) { + if (r > 0 && new_handle.m_http) { printf("----------- %s ------------\n", name); new_handle.m_mime = new_handle.m_http->m_fields_impl; new_handle.print(nullptr, 0, nullptr, nullptr); -- To stop receiving notification emails like this one, please contact zw...@apache.org.