Skip to content

Commit

Permalink
lib-dns - struct member cleanup in dns_lookup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Phil Carmody committed Aug 29, 2018
1 parent 08726df commit b442b37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib-dns/dns-lookup.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b442b37

Please sign in to comment.