X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=991d346a4e4d034dade4423ea3ec9776747d28a4;hb=edd9af8a874ebc9f2a7f02846807229a648917db;hp=2c7a59d343fb938ea7017c162317791830dbf646;hpb=daebbbee0ac53d39a0486aeb8c41fd358f46ed82;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index 2c7a59d3..991d346a 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -209,7 +209,7 @@ static void ignore_list_add (const struct in6_addr *addr) if (ignore_list_match (addr) != 0) return; - new = malloc (sizeof (ip_list_t)); + new = malloc (sizeof (*new)); if (new == NULL) { perror ("malloc");