]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/res.c
Allow CNAMEs everywhere, named will have recursed into them for us.
[irc/rqf/shadowircd.git] / src / res.c
index 08b2c251cf23d484ca162e77d29574fb02fdffbd..f3b6e8061e4553d45c2616221c1af72c507af901 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -679,22 +679,8 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
 
                          return (1);
                          break;
-                 case T_CNAME: /* first check we already havent 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,
-                                                   current, hostbuf, sizeof(hostbuf));
-
-                                 if (n < 0)
-                                         return (0);
-                                 return (1);
-                         }
-
-                         request->state = REQ_CNAME;
+                 case T_CNAME:
+                         /* real answer will follow */
                          current += rd_length;
                          break;