Repository: trafficserver Updated Branches: refs/heads/4.2.x 5b35e087c -> 9e2a47291
TS-3262 Check _hostname[0], which seems correct (cherry picked from commit 29e58ea4ef4884ddc3e3606cac2e4aba3400fdcf) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9e2a4729 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9e2a4729 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9e2a4729 Branch: refs/heads/4.2.x Commit: 9e2a4729114d92019a0ef9d3f4bc89da7ac434a2 Parents: 5b35e08 Author: Leif Hedstrom <zw...@apache.org> Authored: Tue Dec 30 17:18:17 2014 -0700 Committer: Phil Sorber <sor...@apache.org> Committed: Wed Jan 14 16:14:26 2015 -0700 ---------------------------------------------------------------------- proxy/ICPConfig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9e2a4729/proxy/ICPConfig.cc ---------------------------------------------------------------------- diff --git a/proxy/ICPConfig.cc b/proxy/ICPConfig.cc index 2463050..ddc52bb 100644 --- a/proxy/ICPConfig.cc +++ b/proxy/ICPConfig.cc @@ -473,7 +473,7 @@ ICPConfiguration::UpdatePeerConfig() // memcpy(_peer_cdata[i], _peer_cdata_current[i], sizeof(*_peer_cdata[i])); // Setup IP address - if ((_peer_cdata[i]->_ip_addr.isValid()) && _peer_cdata[i]->_hostname) { + if ((_peer_cdata[i]->_ip_addr.isValid()) && _peer_cdata[i]->_hostname[0]) { // IP address not specified, lookup using hostname. (void) PeerConfigData::GetHostIPByName(_peer_cdata[i]->_hostname, _peer_cdata[i]->_my_ip_addr); } else {