host->list = list;
host->vhost_count = VHOST_MULTIPLIER;
host->ip = *ip;
+ host->ip_str = i_strdup(net_ip2addr(ip));
host->tag = mail_tag_get(list, tag_name);
array_append(&list->hosts, &host, 1);
static void mail_host_free(struct mail_host *host)
{
i_free(host->hostname);
+ i_free(host->ip_str);
i_free(host);
}
dest = i_new(struct mail_host, 1);
*dest = *src;
dest->tag = mail_tag_get(dest_list, src->tag->name);
+ dest->ip_str = i_strdup(src->ip_str);
dest->hostname = i_strdup(src->hostname);
return dest;
}