You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2018/05/08 12:33:36 UTC
[trafficserver] branch master updated: clang-fix: ink_inet.cc
This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new f164ad5 clang-fix: ink_inet.cc
f164ad5 is described below
commit f164ad51def4f7fe42e9212c340f8b7a25670501
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Mon May 7 08:34:03 2018 -0500
clang-fix: ink_inet.cc
---
lib/ts/ink_inet.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ts/ink_inet.cc b/lib/ts/ink_inet.cc
index 5879600..3f88a2f 100644
--- a/lib/ts/ink_inet.cc
+++ b/lib/ts/ink_inet.cc
@@ -598,10 +598,10 @@ ats_ip_getbestaddrinfo(const char *host, IpEndpoint *ip4, IpEndpoint *ip6)
}
}
}
- if (ip4_type > NA) {
+ if (ip4 && ip4_type > NA) {
ats_ip_copy(ip4, ip4_src);
}
- if (ip6_type > NA) {
+ if (ip6 && ip6_type > NA) {
ats_ip_copy(ip6, ip6_src);
}
freeaddrinfo(ai_result); // free *after* the copy.
--
To stop receiving notification emails like this one, please contact
amc@apache.org.