| 59 |
|
|
| 60 |
|
static void comm_connect_callback(fde_t *, int); |
| 61 |
|
static PF comm_connect_timeout; |
| 62 |
< |
static void comm_connect_dns_callback(void *, const struct irc_ssaddr *, const char *); |
| 62 |
> |
static void comm_connect_dns_callback(void *, const struct irc_ssaddr *, const char *, size_t); |
| 63 |
|
static PF comm_connect_tryconnect; |
| 64 |
|
|
| 65 |
|
|
| 593 |
|
* otherwise we initiate the connect() |
| 594 |
|
*/ |
| 595 |
|
static void |
| 596 |
< |
comm_connect_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name) |
| 596 |
> |
comm_connect_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name, size_t namelength) |
| 597 |
|
{ |
| 598 |
|
fde_t *F = vptr; |
| 599 |
|
|
| 600 |
< |
if (name == NULL) |
| 600 |
> |
if (EmptyString(name) || namelength > HOSTLEN) |
| 601 |
|
{ |
| 602 |
|
comm_connect_callback(F, COMM_ERR_DNS); |
| 603 |
|
return; |