Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1f5fa39 authored by Stefano Duo's avatar Stefano Duo
Browse files

getaddrinfo: always populate resources for network

Currently, we call resolv_populate_res_for_net in two scenarios:
1. When the hostname we're trying to resolve doesn't define a domain. In
   this scenario we will try to lookup that hostname within all the
   search domain configured for the target network.
2. While sending out a query, within res_nsend, after a cache miss (not
   due to RESOLV_CACHE_UNSUPPORTED).

The only scenario in which it doesn't end up being called is: a lookup
for a hostname that includes a domain, whose result we have in cache.
This codepath is already grabbing this mutex, grabbing it an additional
time for a cheap operation shuold be okay.

Bug: b:374756136
Change-Id: I847d4106b0f793946a877e7c2de48779a6742c98
parent 2cbdc705
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment