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

Comparing ircd-hybrid-7.2/src/irc_res.c (file contents):
Revision 463 by db, Mon Feb 13 03:30:53 2006 UTC vs.
Revision 468 by db, Fri Feb 17 02:42:23 2006 UTC

# Line 833 | Line 833 | res_readreply(fde_t *fd, void *data)
833          request->retries--;
834          resend_query(request);
835        }
836 <      else
836 >      else      /* It's NXDOMAIN but not IPV6 */
837   #endif
838        {
839          /*
# Line 843 | Line 843 | res_readreply(fde_t *fd, void *data)
843          (*request->query->callback)(request->query->ptr, NULL);
844          rem_request(request);
845        }
846      return;
846      }
847 +    else        /* Some other error other than NXDOMAIN */
848 +    {
849 +      /*
850 +       * If a bad error was returned, stop here and don't
851 +       * send any more (no retries granted).
852 +       */
853 +      (*request->query->callback)(request->query->ptr, NULL);
854 +      rem_request(request);
855 +    }
856 +    return;
857    }
858    /*
859     * If this fails there was an error decoding the received packet,

Diff Legend

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