From: Timo Sirainen Date: Sat, 10 Jun 2017 08:40:43 +0000 (+0300) Subject: lib-http: Compiling fix to host->ips reallocation. X-Git-Tag: 2.3.0.rc1~1450 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fc4f555a9a12630932f73659bd575a4a94386ec;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Compiling fix to host->ips reallocation. --- diff --git a/src/lib-http/http-client-host.c b/src/lib-http/http-client-host.c index 3c04574f01..ebe4cd25ba 100644 --- a/src/lib-http/http-client-host.c +++ b/src/lib-http/http-client-host.c @@ -79,7 +79,7 @@ http_client_host_dns_callback(const struct dns_lookup_result *result, "DNS lookup successful; got %d IPs", result->ips_count); i_assert(result->ips_count > 0); - host->ips = i_realloc_type(host->ips, struct ip, + host->ips = i_realloc_type(host->ips, struct ip_addr, host->ips_count, result->ips_count); host->ips_count = result->ips_count; memcpy(host->ips, result->ips, sizeof(*host->ips) * host->ips_count);