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/dns/dns.c

    r611 r822  
    163163        free(dns.pending.retry_times); 
    164164    dns.pending.retry_times = 
    165         malloc(sizeof(unsigned int) * (dns.pending.retries + 1)); 
     165        calloc(1, sizeof(unsigned int) * (dns.pending.retries + 1)); 
    166166    dns.pending.retry_times[dns.pending.retries] = dns.pending.timeout; 
    167167    for (i = dns.pending.retries - 1;i >= 0;i--) 
Note: See TracChangeset for help on using the changeset viewer.