Attachment 'bind-4.9.4.patch'

Download

   1 diff -ru bind-4.9.4-orig/res/gethnamaddr.c bind-4.9.4/res/gethnamaddr.c
   2 --- bind-4.9.4-orig/res/gethnamaddr.c   Mon Aug  5 02:31:35 1996
   3 +++ bind-4.9.4/res/gethnamaddr.c        Tue Aug 27 15:33:11 1996
   4 @@ -133,6 +133,7 @@
   5  } align;
   6 
   7  extern int h_errno;
   8 +int _dns_ttl_;
   9 
  10  #ifdef DEBUG
  11  static void
  12 @@ -223,6 +224,7 @@
  13         host.h_addr_list = h_addr_ptrs;
  14         haveanswer = 0;
  15         had_error = 0;
  16 +       _dns_ttl_ = -1;
  17         while (ancount-- > 0 && cp < eom && !had_error) {
  18                 n = dn_expand(answer->buf, eom, cp, bp, buflen);
  19                 if ((n < 0) || !(*name_ok)(bp)) {
  20 @@ -232,8 +234,11 @@
  21                 cp += n;                        /* name */
  22                 type = _getshort(cp);
  23                 cp += INT16SZ;                  /* type */
  24 -               class = _getshort(cp);
  25 -               cp += INT16SZ + INT32SZ;        /* class, TTL */
  26 +               class = _getshort(cp);
  27 +               cp += INT16SZ;                  /* class */
  28 +               if (qtype == T_A  && type == T_A)
  29 +                       _dns_ttl_ = _getlong(cp);
  30 +               cp += INT32SZ;                  /* TTL */
  31                 n = _getshort(cp);
  32                 cp += INT16SZ;                  /* len */
  33                 if (class != C_IN) {

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-02-07 22:08:49, 1.2 KB) [[attachment:bind-4.9.4.patch]]
  • [get | view] (2006-02-07 22:09:34, 1.5 KB) [[attachment:bind-8.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.