This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4629fd7 Clear api set bit to avoid crash in following redirect.
4629fd7 is described below
commit 4629fd73c2a450005aef60d1b1a6ce3785acdfb0
Author: Susan Hinrichs <[email protected]>
AuthorDate: Wed Sep 25 14:17:24 2019 +0000
Clear api set bit to avoid crash in following redirect.
(cherry picked from commit b0820c3bfa852596a49092c13cb373651c95964c)
---
proxy/http/HttpSM.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 346eab5..62cbb75 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -7739,6 +7739,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;
}