[
https://issues.apache.org/jira/browse/TS-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15104167#comment-15104167
]
ASF subversion and git services commented on TS-4141:
-----------------------------------------------------
Commit 9381f6f889961adc7fddbea2a796440a975a5bae in trafficserver's branch
refs/heads/6.1.x from shinrich
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=9381f6f ]
TS-4141: Null check fix.
(cherry picked from commit 56109f1c1dbde685cea35051f242d6f7e1c9821c)
> CID 1348540: Null pointer dereferences
> ---------------------------------------
>
> Key: TS-4141
> URL: https://issues.apache.org/jira/browse/TS-4141
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Reporter: Leif Hedstrom
> Assignee: Susan Hinrichs
> Labels: coverity
> Fix For: 6.1.0
>
>
> {code}
> *** CID 1348540: Null pointer dereferences (FORWARD_NULL)
> /proxy/http/HttpSM.cc: 5643 in
> HttpSM::attach_server_session(HttpServerSession *)()
> 5637 server_entry->vc_handler =
> &HttpSM::state_send_server_request_header;
> 5638
> 5639
> 5640 // es - is this a concern here in HttpSM? Does it belong
> somewhere else?
> 5641 // Get server and client connections
> 5642 UnixNetVConnection *server_vc = dynamic_cast<UnixNetVConnection
> *>(server_session->get_netvc());
> CID 1348540: Null pointer dereferences (FORWARD_NULL)
> Passing null pointer "this->ua_session" to "get_netvc", which dereferences
> it. (The dereference happens because this is a virtual function call.)
> 5643 UnixNetVConnection *client_vc = (UnixNetVConnection
> *)(ua_session->get_netvc());
> 5644 SSLNetVConnection *ssl_vc = dynamic_cast<SSLNetVConnection
> *>(client_vc);
> 5645 bool associated_connection = false;
> 5646 if (server_vc) { // if server_vc isn't a PluginVC
> 5647 if (ssl_vc) { // if incoming connection is SSL
> 5648 bool client_trace = ssl_vc->getSSLTrace();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)