Skip to content

Commit

Permalink
Clear api set bit to avoid crash in following redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
shinrich committed Sep 27, 2019
1 parent 70de21d commit b0820c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/http/HttpSM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7782,6 +7782,9 @@ HttpSM::redirect_request(const char *arg_redirect_url, const int arg_redirect_le
t_state.server_info.clear();
t_state.parent_info.clear();

// Must reset whether the InkAPI has set the destination address
t_state.api_server_addr_set = false;

if (t_state.txn_conf->cache_http) {
t_state.cache_info.object_read = nullptr;
}
Expand Down

0 comments on commit b0820c3

Please sign in to comment.