You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/02/01 21:40:35 UTC

[trafficserver] 01/02: Processing DNS reponses with CNAME & SRV records

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 01f6b1b01822312e42dcf7913a24ad1e6e6afd7b
Author: Unknown <ac...@oath.com>
AuthorDate: Thu Jan 25 17:06:40 2018 -0600

    Processing DNS reponses with CNAME & SRV records
    
    When DNS responded to SRV query with a CNAME code breaking and not prase SRV records.
    Now this functions the sme as if it where an A or AAAA query.
    
    (cherry picked from commit 42ab1d012922fee8b9d6fafa14ef005ed1a291a4)
    
     Conflicts:
    	iocore/dns/DNS.cc
---
 iocore/dns/DNS.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/dns/DNS.cc b/iocore/dns/DNS.cc
index 0c0c4ae..f5858c0 100644
--- a/iocore/dns/DNS.cc
+++ b/iocore/dns/DNS.cc
@@ -1455,7 +1455,7 @@ dns_process(DNSHandler *handler, HostEnt *buf, int len)
       //
       // Decode cname
       //
-      if (is_addr_query(e->qtype) && (type == T_CNAME || type == T_DNAME)) {
+      if ((is_addr_query(e->qtype) || e->qtype == T_SRV) && (type == T_CNAME || type == T_DNAME)) {
         if (ap >= &buf->host_aliases[DNS_MAX_ALIASES - 1])
           continue;
         n = ink_dn_expand((u_char *)h, eom, cp, tbuf, sizeof(tbuf));

-- 
To stop receiving notification emails like this one, please contact
zwoop@apache.org.