From: Phil Carmody Date: Wed, 29 Aug 2018 12:15:30 +0000 (+0300) Subject: lib-dns - struct member cleanup in dns_lookup X-Git-Tag: 2.3.9~1507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b442b3737cf049ad290b912b2da53e1699c778c4;p=thirdparty%2Fdovecot%2Fcore.git lib-dns - struct member cleanup in dns_lookup The index was never used anyway. Now we're using an alloconly pool, there's no need for the dns_lookup to keep a freeable pointer to the fields also int result. Signed-off-by: Phil Carmody --- diff --git a/src/lib-dns/dns-lookup.c b/src/lib-dns/dns-lookup.c index 31e2365bf3..0d74660f26 100644 --- a/src/lib-dns/dns-lookup.c +++ b/src/lib-dns/dns-lookup.c @@ -34,9 +34,6 @@ struct dns_lookup { unsigned int warn_msecs; struct dns_lookup_result result; - struct ip_addr *ips; - unsigned int ip_idx; - char *name; struct event *event; dns_lookup_callback_t *callback; @@ -133,7 +130,7 @@ static int dns_lookup_input_args(struct dns_lookup *lookup, const char *const *a } if (lookup->ptr_lookup) { - result->name = lookup->name = p_strdup(lookup->pool, args[1]); + result->name = p_strdup(lookup->pool, args[1]); return 1; }