]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dns - struct member cleanup in dns_lookup
authorPhil Carmody <phil@dovecot.fi>
Wed, 29 Aug 2018 12:15:30 +0000 (15:15 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 13 Nov 2018 13:10:23 +0000 (15:10 +0200)
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 <phil@dovecot.fi>
src/lib-dns/dns-lookup.c

index 31e2365bf3356c362035272afb410fbe7247508e..0d74660f268cac4cb87484018b00a207a877f813 100644 (file)
@@ -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;
        }