| # | Line 92 | Line 92 | static int find_user_host(struct Client | |
|---|---|---|
| 92 | * if successful save hp in the conf item it was called with | |
| 93 | */ | |
| 94 | static void | |
| 95 | < | conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name) |
| 95 | > | conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name, size_t namelength) |
| 96 | { | |
| 97 | struct MaskItem *conf = vptr; | |
| 98 | ||
| 99 | conf->dns_pending = 0; | |
| 100 | ||
| 101 | + | if (EmptyString(name) || namelength > HOSTLEN) |
| 102 | + | return; |
| 103 | + | |
| 104 | if (addr) | |
| 105 | memcpy(&conf->addr, addr, sizeof(conf->addr)); | |
| 106 | else | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |