Attachment 'bind-8.patch'

Download

   1 *** src/lib/irs/dns_ho.c.orig   Tue May 26 21:55:51 1998
   2 --- src/lib/irs/dns_ho.c        Tue May 26 21:59:57 1998
   3 ***************
   4 *** 87,92 ****
   5 --- 87,93 ----
   6   #endif
   7 
   8   extern int h_errno;
   9 + int _dns_ttl_;
  10 
  11   /* Definitions. */
  12 
  13 ***************
  14 *** 395,400 ****
  15 --- 396,402 ----
  16         pvt->host.h_addr_list = pvt->h_addr_ptrs;
  17         haveanswer = 0;
  18         had_error = 0;
  19 +       _dns_ttl_ = -1;
  20         while (ancount-- > 0 && cp < eom && !had_error) {
  21                 n = dn_expand(ansbuf, eom, cp, bp, buflen);
  22                 if ((n < 0) || !(*name_ok)(bp)) {
  23 ***************
  24 *** 404,411 ****
  25                 cp += n;                        /* name */
  26                 type = ns_get16(cp);
  27                 cp += INT16SZ;                  /* type */
  28 !               class = ns_get16(cp);
  29 !               cp += INT16SZ + INT32SZ;        /* class, TTL */
  30                 n = ns_get16(cp);
  31                 cp += INT16SZ;                  /* len */
  32                 if (class != C_IN) {
  33 --- 406,416 ----
  34                 cp += n;                        /* name */
  35                 type = ns_get16(cp);
  36                 cp += INT16SZ;                  /* type */
  37 !               class = _getshort(cp);
  38 !               cp += INT16SZ;                  /* class */
  39 !               if (qtype == T_A  && type == T_A)
  40 !                       _dns_ttl_ = _getlong(cp);
  41 !               cp += INT32SZ;                  /* TTL */
  42                 n = ns_get16(cp);
  43                 cp += INT16SZ;                  /* len */
  44                 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.