Skip to content

Commit

Permalink
lib-dns: dnc_client_lookup*() - Add data stack frames
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 2, 2024
1 parent a3aee24 commit 40c6a58
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/lib-dns/dns-lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,17 +529,26 @@ int dns_client_lookup(struct dns_client *client, const char *host,
dns_lookup_callback_t *callback, void *context,
struct dns_lookup **lookup_r)
{
return dns_client_lookup_common(client, "IP", host, FALSE, event,
callback, context, lookup_r);
int ret;
T_BEGIN {
ret = dns_client_lookup_common(client, "IP", host, FALSE, event,
callback, context, lookup_r);
} T_END;
return ret;
}

int dns_client_lookup_ptr(struct dns_client *client, const struct ip_addr *ip,
struct event *event,
dns_lookup_callback_t *callback, void *context,
struct dns_lookup **lookup_r)
{
return dns_client_lookup_common(client, "NAME", net_ip2addr(ip), TRUE,
event, callback, context, lookup_r);
int ret;
T_BEGIN {
ret = dns_client_lookup_common(client, "NAME", net_ip2addr(ip),
TRUE, event, callback, context,
lookup_r);
} T_END;
return ret;
}

void dns_client_switch_ioloop(struct dns_client *client)
Expand Down

0 comments on commit 40c6a58

Please sign in to comment.