/[svn]/ircd-hybrid-7.2/src/irc_res.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/irc_res.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 462 by db, Sun Feb 12 02:59:16 2006 UTC revision 463 by db, Mon Feb 13 03:30:53 2006 UTC
# Line 813  res_readreply(fde_t *fd, void *data) Line 813  res_readreply(fde_t *fd, void *data)
813    
814    if ((header->rcode != NO_ERRORS) || (header->ancount == 0))    if ((header->rcode != NO_ERRORS) || (header->ancount == 0))
815    {    {
816      if ((SERVFAIL == header->rcode) || (NXDOMAIN == header->rcode))      if (NXDOMAIN == header->rcode)
     {  
       /*  
        * If a bad error was returned, we stop here and dont send  
        * send any more (no retries granted).  
        */  
       (*request->query->callback)(request->query->ptr, NULL);  
       rem_request(request);  
     }  
     else  
817      {      {
818        /*        /*
819         * If we havent already tried this, and we're looking up AAAA, try A         * If we havent already tried this, and we're looking up AAAA, try A
820         * now         * now
821         */         */
   
822  #ifdef IPV6  #ifdef IPV6
823        if (request->state == REQ_AAAA && request->type == T_AAAA)        if (request->state == REQ_AAAA && request->type == T_AAAA)
824        {        {
# Line 840  res_readreply(fde_t *fd, void *data) Line 830  res_readreply(fde_t *fd, void *data)
830        {        {
831          request->state = REQ_INT;          request->state = REQ_INT;
832          request->timeout += 4;          request->timeout += 4;
833          request->retries--;          request->retries--;
834          resend_query(request);          resend_query(request);
835        }        }
836          else
837  #endif  #endif
838          {
839            /*
840             * If a bad error was returned, stop here and don't
841             * send any more (no retries granted).
842             */
843            (*request->query->callback)(request->query->ptr, NULL);
844            rem_request(request);
845          }
846          return;
847      }      }
   
     return;  
848    }    }
849    /*    /*
850     * If this fails there was an error decoding the received packet,     * If this fails there was an error decoding the received packet,

Legend:
Removed from v.462  
changed lines
  Added in v.463

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28