--------------------- PatchSet 4772 Date: 2007/06/22 08:14:32 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Update RFC1035 library to handle CNAME records properly. Members: lib/rfc1035.c:1.5.2.16->1.5.2.17 Index: squid3/lib/rfc1035.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/rfc1035.c,v retrieving revision 1.5.2.16 retrieving revision 1.5.2.17 diff -u -r1.5.2.16 -r1.5.2.17 --- squid3/lib/rfc1035.c 22 Jun 2007 07:30:23 -0000 1.5.2.16 +++ squid3/lib/rfc1035.c 22 Jun 2007 08:14:32 -0000 1.5.2.17 @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.5.2.16 2007/06/22 07:30:23 amosjeffries Exp $ + * $Id: rfc1035.c,v 1.5.2.17 2007/06/22 08:14:32 amosjeffries Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -390,6 +390,7 @@ } RR->rdlength = rdlength; switch (RR->type) { + case RFC1035_TYPE_CNAME: case RFC1035_TYPE_PTR: RR->rdata = xmalloc(RFC1035_MAXHOSTNAMESZ); rdata_off = *off; @@ -409,7 +410,6 @@ } break; case RFC1035_TYPE_A: - case RFC1035_TYPE_CNAME: default: RR->rdata = xmalloc(rdlength); memcpy(RR->rdata, buf + (*off), rdlength);