Skip to content

Commit

Permalink
TS-2848: Check for NULL server in HttpSM::release_server_session
Browse files Browse the repository at this point in the history
  • Loading branch information
Feifei Cai authored and Alan M. Carroll committed Jun 15, 2015
1 parent 0c81ce8 commit eff2e4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 6.0.0

*) [TS-2848] Check for null server in HttpSM::release_server_session

*) [TS-3163] Apply socket configurations to outbound connections.
Author: Wei Sun

Expand Down
2 changes: 1 addition & 1 deletion proxy/http/HttpSM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5002,7 +5002,7 @@ HttpSM::release_server_session(bool serve_from_cache)
return;
}

if (TS_SERVER_SESSION_SHARING_MATCH_NONE != t_state.txn_conf->server_session_sharing_match &&
if (TS_SERVER_SESSION_SHARING_MATCH_NONE != t_state.txn_conf->server_session_sharing_match && t_state.current.server != NULL &&
t_state.current.server->keep_alive == HTTP_KEEPALIVE && t_state.hdr_info.server_response.valid() &&
t_state.hdr_info.server_request.valid() && (t_state.hdr_info.server_response.status_get() == HTTP_STATUS_NOT_MODIFIED ||
(t_state.hdr_info.server_request.method_get_wksidx() == HTTP_WKSIDX_HEAD &&
Expand Down

0 comments on commit eff2e4a

Please sign in to comment.