X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils_dns.c;h=991d346a4e4d034dade4423ea3ec9776747d28a4;hb=8b3afb76805d0e0bbaf2b7ef3f37c07c1ebf0ffb;hp=2c7a59d343fb938ea7017c162317791830dbf646;hpb=5c2993e4121feae745551be182221b31bc23ff97;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");