Allow a (single) CNAME follow when doing A and AAAA lookups.
[ircu2.10.12-pk.git] / ircd / ircd_res.c
index 6467abaa4e942b36407a7aac2e0244f7dd1410e9..52d6865e103b424e093d7e98b85a8e5adfcf1307 100644 (file)
@@ -706,9 +706,6 @@ proc_answer(struct reslist *request, HEADER* header, char* buf, char* eob)
         break;
       case T_CNAME: /* first check we already haven't started looking
                        into a cname */
-        if (request->type != T_PTR)
-          return(0);
-
         if (request->state == REQ_CNAME)
         {
           n = irc_dn_expand((unsigned char *)buf, (unsigned char *)eob,