diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2013-07-31 16:53:46 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2013-07-31 16:53:46 -0700 |
commit | e0805a94c5b25237fa64eab5806aa534cb644dfb (patch) | |
tree | 1e0e8c9fcfecb4b1bd4ff8e8698b49334c4351cd /libc/netbsd | |
parent | 101b5e1f6cc4e24635760928b3d2c1e51c1e5774 (diff) | |
download | bionic-e0805a94c5b25237fa64eab5806aa534cb644dfb.zip bionic-e0805a94c5b25237fa64eab5806aa534cb644dfb.tar.gz bionic-e0805a94c5b25237fa64eab5806aa534cb644dfb.tar.bz2 |
Tell the dns resolver about our domains.
A refactor caused us to not tell the resolver about search domains
until after it had done the domain fanout.
bug:6799630
Change-Id: Ibabd8fa5bcc69b1490fc5e329e62eb0f2d1a5e63
Diffstat (limited to 'libc/netbsd')
-rw-r--r-- | libc/netbsd/net/getaddrinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c index 401bc6e..9379c53 100644 --- a/libc/netbsd/net/getaddrinfo.c +++ b/libc/netbsd/net/getaddrinfo.c @@ -2310,6 +2310,12 @@ res_searchN(const char *name, struct res_target *target, res_state res) (dots && !trailing_dot && (res->options & RES_DNSRCH))) { int done = 0; + /* Unfortunately we need to set stuff up before + * the domain stuff is tried. Will have a better + * fix after thread pools are used. + */ + _resolv_populate_res_for_iface(res); + for (domain = (const char * const *)res->dnsrch; *domain && !done; domain++) { |