diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 02:14:02 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 02:14:02 +0000 |
commit | e4e7288fbbda34ea9219b0fdb157c5a67762710b (patch) | |
tree | 8e7f8a04b6f8609a4800fb9ff74b0e7783328a92 /net | |
parent | 191f8da8ac04aee79d03c2d8e610d97369fbef0a (diff) | |
download | chromium_src-e4e7288fbbda34ea9219b0fdb157c5a67762710b.zip chromium_src-e4e7288fbbda34ea9219b0fdb157c5a67762710b.tar.gz chromium_src-e4e7288fbbda34ea9219b0fdb157c5a67762710b.tar.bz2 |
Fix usage error for libresolv - res_ninit on OSX requires res_ndestroy to close
BUG=95497
TEST=none
Review URL: http://codereview.chromium.org/7839018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/dns/dns_config_service_posix.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns/dns_config_service_posix.cc b/net/dns/dns_config_service_posix.cc index c8b4ab1..b05b164 100644 --- a/net/dns/dns_config_service_posix.cc +++ b/net/dns/dns_config_service_posix.cc @@ -35,7 +35,11 @@ class DnsConfigServicePosix::DnsConfigReader : public WatchingFileReader { // Note: res_ninit in glibc always returns 0 and sets RES_INIT. success_ = false; } +#if defined(OS_MACOSX) + res_ndestroy(&res); +#else res_nclose(&res); +#endif } void OnReadFinished() OVERRIDE { |