Ignore:
Timestamp:
11/07/08 03:28:26 (4 years ago)
Author:
wd
Message:

Fix various dumbnesses in the DNS code and the way the ircd module uses it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/connection.c

    r818 r822  
    274274            while (drp != NULL) { 
    275275                /* Check each answer.. */ 
    276                 if (drp->type == atype && 
    277                         !strcasecmp(drp->rdata.txt, ip)) 
     276                if (drp->type == atype &&  
     277                    drp->rdlen > 0 && drp->rdata.txt != NULL && 
     278                    !strcasecmp(drp->rdata.txt, ip)) 
    278279                    break; 
    279280                drp = LIST_NEXT(drp, lp); 
Note: See TracChangeset for help on using the changeset viewer.