Updated Branches: refs/heads/master 6fbca4e89 -> ab996456f
TS-2320: TSRedirectUrlSet truncates host header in redirected request Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ab996456 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ab996456 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ab996456 Branch: refs/heads/master Commit: ab996456f1ef63406ad559d531ba3c1760a3717a Parents: 6fbca4e Author: Bryan Call <[email protected]> Authored: Tue Nov 5 13:14:51 2013 -0800 Committer: Bryan Call <[email protected]> Committed: Tue Nov 5 13:14:51 2013 -0800 ---------------------------------------------------------------------- proxy/http/HttpSM.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ab996456/proxy/http/HttpSM.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index e8b8f64..06f6096 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -7398,7 +7398,7 @@ HttpSM::redirect_request(const char *redirect_url, const int redirect_len) #else char *buf = (char *)ats_malloc(host_len + 7); #endif - ink_strlcpy(buf, host, host_len); + ink_strlcpy(buf, host, host_len+1); host_len += snprintf(buf + host_len, sizeof(buf) - host_len, ":%d", port); t_state.hdr_info.client_request.value_set(MIME_FIELD_HOST, MIME_LEN_HOST, buf, host_len); #if !defined(__GNUC__)
