[GitHub] trafficserver pull request #1232: TS-4938: Avoid crashes due to NULL vc dere...

2016-11-28 Thread PSUdaemon
Github user PSUdaemon closed the pull request at:

https://github.com/apache/trafficserver/pull/1232


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] trafficserver pull request #1232: TS-4938: Avoid crashes due to NULL vc dere...

2016-11-28 Thread shinrich
Github user shinrich commented on a diff in the pull request:

https://github.com/apache/trafficserver/pull/1232#discussion_r89840018
  
--- Diff: proxy/http/HttpTransact.cc ---
@@ -558,7 +558,8 @@ HttpTransact::BadRequest(State *s)
 void
 HttpTransact::HandleBlindTunnel(State *s)
 {
-  bool inbound_transparent_p = 
s->state_machine->ua_session->get_netvc()->get_is_transparent();
+  NetVConnection *vc = s->state_machine->ua_session->get_netvc();
+  bool inbound_transparent_p = vc->get_is_transparent();
--- End diff --

This change isn't going to protect from a NULL vc dereference.  I just 
double checked through and it is the change that was made on the master branch, 
so the backport is consistent.  


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] trafficserver pull request #1232: TS-4938: Avoid crashes due to NULL vc dere...

2016-11-22 Thread sekimura
GitHub user sekimura opened a pull request:

https://github.com/apache/trafficserver/pull/1232

TS-4938: Avoid crashes due to NULL vc dereferences.

Potentially this could fix TS-5046 SEGV HttpSM::tunnel_handler_server(int 
event, HttpTunnelProducer *p)

cherry picked from commit 784e7cc8a91b48b93b57cad27ba403684880969f

Conflicts:
proxy/http/HttpSM.cc
proxy/http/HttpServerSession.h

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/sekimura/trafficserver ts-4938-backport

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/trafficserver/pull/1232.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1232


commit cb7d71a6b1a0789fe66c424c51f137787a12e70b
Author: Susan Hinrichs 
Date:   2016-10-06T16:20:08Z

TS-4938: Avoid crashes due to NULL vc dereferences.

One more null check.

Remove server_session null checks.  And address James' comments.

clang-format

(cherry picked from commit 784e7cc8a91b48b93b57cad27ba403684880969f)

Conflicts:
proxy/http/HttpSM.cc
proxy/http/HttpServerSession.h




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---