]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Compiling fix to host->ips reallocation.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 10 Jun 2017 08:40:43 +0000 (11:40 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 10 Jun 2017 08:40:43 +0000 (11:40 +0300)
src/lib-http/http-client-host.c

index 3c04574f01f303a7bbd9d0073c8f99b193351027..ebe4cd25ba6c20ffb676e4708f15b56ae0c49874 100644 (file)
@@ -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);