commit | 90a83beb4dd3a70aeb512a786e9a79bbd641f4de | [log] [tgz] |
---|---|---|
author | Ben Schwartz <bemasc@google.com> | Mon Apr 24 17:57:11 2017 -0400 |
committer | Ben Schwartz <bemasc@google.com> | Mon May 22 18:37:25 2017 -0400 |
tree | 6e8c1e3867def69f895bde71df8890ec8e6e279c | |
parent | 6e7f14d9f707c295765e119800acfa0621a347cb [diff] [blame] |
Make use of the DNS query hook in the netcontext This will allow netd to run queries over TLS: https://android-review.googlesource.com/#/c/391513/ https://android-review.googlesource.com/#/c/380593/ Bug: 34953048 Test: Device tests pass. No issues during manual testing. Change-Id: I8d613322307fc40cdba59b82599eda753697278f
diff --git a/libc/dns/net/getaddrinfo.c b/libc/dns/net/getaddrinfo.c index 4215963..418bf6d 100644 --- a/libc/dns/net/getaddrinfo.c +++ b/libc/dns/net/getaddrinfo.c
@@ -1981,8 +1981,7 @@ * fully populate the thread private data here, but if we get down there * and have a cache hit that would be wasted, so we do the rest there on miss */ - res_setnetid(res, netcontext->dns_netid); - res_setmark(res, netcontext->dns_mark); + res_setnetcontext(res, netcontext); if (res_searchN(name, &q, res) < 0) { __res_put_state(res); free(buf);