Changeset 822
- Timestamp:
- 11/07/08 03:28:26 (3 years ago)
- Location:
- branches/ithildin-1.1/modules
- Files:
-
- 4 edited
-
dns/dns.c (modified) (1 diff)
-
dns/packet.c (modified) (2 diffs)
-
ircd/client.c (modified) (1 diff)
-
ircd/connection.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-1.1/modules/dns/dns.c
r611 r822 163 163 free(dns.pending.retry_times); 164 164 dns.pending.retry_times = 165 malloc(sizeof(unsigned int) * (dns.pending.retries + 1));165 calloc(1, sizeof(unsigned int) * (dns.pending.retries + 1)); 166 166 dns.pending.retry_times[dns.pending.retries] = dns.pending.timeout; 167 167 for (i = dns.pending.retries - 1;i >= 0;i--) -
branches/ithildin-1.1/modules/dns/packet.c
r736 r822 295 295 last_rr = NULL; 296 296 while (count) { 297 drp = malloc(sizeof(struct dns_rr));297 drp = calloc(1, sizeof(struct dns_rr)); 298 298 299 299 if ((rc = dn_expand(pkt, pkt + plen, pkt + pidx, drp->name, … … 323 323 /* Fill in the data. We do a copy over first, and if we need to 324 324 * realloc and make changes below we do that too */ 325 drp->rdata.txt = malloc(drp->rdlen);325 drp->rdata.txt = calloc(1, drp->rdlen); 326 326 memcpy(drp->rdata.txt, rdata, drp->rdlen); 327 327 switch (drp->type) { -
branches/ithildin-1.1/modules/ircd/client.c
r777 r822 266 266 267 267 first[0] = *nick; 268 if ( !istr_okay(ircd.maps.nick_first, first) ||269 !istr_okay(ircd.maps.nick, nick))268 if (*nick == '\0' || !istr_okay(ircd.maps.nick_first, first) || 269 !istr_okay(ircd.maps.nick, nick)) 270 270 return 0; 271 271 return 1; -
branches/ithildin-1.1/modules/ircd/connection.c
r818 r822 274 274 while (drp != NULL) { 275 275 /* 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)) 278 279 break; 279 280 drp = LIST_NEXT(drp, lp);
Note: See TracChangeset
for help on using the changeset viewer.
