aboutsummaryrefslogtreecommitdiffstats
path: root/libc/netbsd/net/getaddrinfo.c
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-08-01 00:47:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-08-01 00:47:29 +0000
commite6345f1a1ec691690c69d5663ca8bb2b70240d93 (patch)
tree1e0e8c9fcfecb4b1bd4ff8e8698b49334c4351cd /libc/netbsd/net/getaddrinfo.c
parent101b5e1f6cc4e24635760928b3d2c1e51c1e5774 (diff)
parente0805a94c5b25237fa64eab5806aa534cb644dfb (diff)
downloadandroid_bionic-e6345f1a1ec691690c69d5663ca8bb2b70240d93.tar.gz
android_bionic-e6345f1a1ec691690c69d5663ca8bb2b70240d93.tar.bz2
android_bionic-e6345f1a1ec691690c69d5663ca8bb2b70240d93.zip
Merge "Tell the dns resolver about our domains."
Diffstat (limited to 'libc/netbsd/net/getaddrinfo.c')
-rw-r--r--libc/netbsd/net/getaddrinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c
index 401bc6efc..9379c53eb 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++) {