Revision: 14710
Author: adrian.chadd
Date: Wed Jun  9 19:06:10 2010
Log: More IPv6-dns related fixes.


http://code.google.com/p/lusca-cache/source/detail?r=14710

Modified:
 /branches/LUSCA_HEAD/lib/rfc1035.c

=======================================
--- /branches/LUSCA_HEAD/lib/rfc1035.c  Sat May 29 01:02:59 2010
+++ /branches/LUSCA_HEAD/lib/rfc1035.c  Wed Jun  9 19:06:10 2010
@@ -391,6 +391,10 @@
     }
     RR->rdlength = rdlength;
     switch (RR->type) {
+    /*
+ * XXX TODO: [ahc] shouldn't we treat CNAME's here? Or would that break existing code that expects RAW CNAMEs?
+     * case RFC1035_TYPE_CNAME:
+     */
     case RFC1035_TYPE_PTR:
        RR->rdata = xmalloc(RFC1035_MAXHOSTNAMESZ);
        rdata_off = *off;
@@ -410,6 +414,7 @@
        }
        break;
     case RFC1035_TYPE_A:
+    case RFC1035_TYPE_AAAA:
     default:
        RR->rdata = xmalloc(rdlength);
        memcpy(RR->rdata, buf + (*off), rdlength);

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to