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

Comparing ircd-hybrid/trunk/src/res.c (file contents):
Revision 4236 by michael, Tue Jul 15 17:32:28 2014 UTC vs.
Revision 4237 by michael, Tue Jul 15 17:38:39 2014 UTC

# Line 741 | Line 741 | res_readreply(fde_t *fd, void *data)
741      return;
742  
743    /*
744 +   * Check against possibly fake replies
745 +   */
746 +  if (!res_ourserver(&lsin))
747 +    return;
748 +
749 +  /*
750     * Convert DNS reply reader from Network byte order to CPU byte order.
751     */
752    header = (HEADER *)buf;
# Line 750 | Line 756 | res_readreply(fde_t *fd, void *data)
756    header->arcount = ntohs(header->arcount);
757  
758    /*
753   * Check against possibly fake replies
754   */
755  if (!res_ourserver(&lsin))
756    return;
757
758  /*
759     * Response for an id which we have already received an answer for
760     * just ignore this response.
761     */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)