ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/res.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/res.c (file contents):
Revision 4450 by michael, Mon Aug 11 15:47:08 2014 UTC vs.
Revision 4451 by michael, Mon Aug 11 15:51:26 2014 UTC

# Line 552 | Line 552 | proc_answer(struct reslist *request, HEA
552          request->namelength = strlcpy(request->name, hostbuf, sizeof(request->name));
553          return 1;
554          break;
555 <      case T_CNAME:  /* First check we already haven't started looking into a cname */
556 <        if (request->type != T_PTR)
557 <          return 0;
558 <
559 <        if (request->state == REQ_CNAME)
560 <        {
561 <          n = irc_dn_expand((unsigned char *)buf, (unsigned char *)eob,
562 <                            current, hostbuf, sizeof(hostbuf));
563 <
564 <          if (n < 0)
565 <            return 0;
566 <          return 1;
567 <        }
568 <
569 <        request->state = REQ_CNAME;
555 >      case T_CNAME:
556          current += rd_length;
557          break;
558  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines