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

Comparing ircd-hybrid-7.2/src/irc_res.c (file contents):
Revision 154 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 155 by db, Tue Oct 18 02:54:54 2005 UTC

# Line 808 | Line 808 | res_readreply(fde_t *fd, void *data)
808    if ((header->rcode != NO_ERRORS) || (header->ancount == 0))
809    {
810      if (SERVFAIL == header->rcode)
811 <      resend_query(request);
811 >    {
812 >      /*
813 >       * If a bad error was returned, we stop here and dont send
814 >       * send any more (no retries granted).
815 >       */
816 >      (*request->query->callback)(request->query->ptr, NULL);
817 >      rem_request(request);
818 >    }
819      else
820      {
821        /*
# Line 830 | Line 837 | res_readreply(fde_t *fd, void *data)
837          request->retries--;
838          resend_query(request);
839        }
833      else
840   #endif
835      {
836        /*
837         * If a bad error was returned, we stop here and dont send
838         * send any more (no retries granted).
839         */
840        (*request->query->callback)(request->query->ptr, NULL);
841        rem_request(request);
842      }
841      }
842  
843      return;

Diff Legend

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