diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2013-07-31 17:57:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-07-31 17:57:45 -0700 |
commit | 7e5d7485b7c6b9556a0e98236b43e21e33271a5c (patch) | |
tree | 60af978c10b25e91236446a13e99cda6f609f680 /libc/netbsd/net/getaddrinfo.c | |
parent | abf3638317b4568c7e0c4d6d8c4b70a8e4af6449 (diff) | |
parent | e6345f1a1ec691690c69d5663ca8bb2b70240d93 (diff) | |
download | android_bionic-7e5d7485b7c6b9556a0e98236b43e21e33271a5c.tar.gz android_bionic-7e5d7485b7c6b9556a0e98236b43e21e33271a5c.tar.bz2 android_bionic-7e5d7485b7c6b9556a0e98236b43e21e33271a5c.zip |
am e6345f1a: Merge "Tell the dns resolver about our domains."
* commit 'e6345f1a1ec691690c69d5663ca8bb2b70240d93':
Tell the dns resolver about our domains.
Diffstat (limited to 'libc/netbsd/net/getaddrinfo.c')
-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 0a5e436ba..09da66c14 100644 --- a/libc/netbsd/net/getaddrinfo.c +++ b/libc/netbsd/net/getaddrinfo.c @@ -2313,6 +2313,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++) { |