netty5/resolver-dns/src
Trustin Lee ef8dcae9af Fix potential infinite loop when resolving CNAME records
Related: #4771

Motivation:

A malicious or misconfigured DNS server can send the CNAME records that
resolve into each other, causing an unexpected infinite loop in
DnsNameResolverContext.onResponseCNAME().

Modifications:

- Remove the dereferenced CNAME from the alias map so that infinite loop
  is impossible.
- Fix inspection warnings and typos in DnsNameResolverTest

Result:

Fixes #4771
2016-03-07 15:12:26 +00:00
..
main/java/io/netty/resolver/dns Fix potential infinite loop when resolving CNAME records 2016-03-07 15:12:26 +00:00
test Fix potential infinite loop when resolving CNAME records 2016-03-07 15:12:26 +00:00