Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Issue 10546081: [net/dns] If the only name server is 0.0.0.0:53 assume DnsConfig is invalid. (Closed)

Created:
8 years, 6 months ago by szym
Modified:
8 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

[net/dns] If the only name server is 0.0.0.0:53 assume DnsConfig is invalid. When /etc/resolv.conf has no "nameserver" entries, res_ninit will default to a single server: 0.0.0.0:53. BUG=130808 TEST=./net_unittests --gtest_filter=DnsConfigServicePosixTest.RejectDefaultNameserver Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142166

Patch Set 1 : . #

Patch Set 2 : Initialize sockaddr_in. #

Total comments: 2

Patch Set 3 : Reject when any nameserver is 0.0.0.0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M net/dns/dns_config_service_posix.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M net/dns/dns_config_service_posix_unittest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
szym
This CL is to replace: http://codereview.chromium.org/10479005/ It changes DnsConfigService rather than just the histogram. Note ...
8 years, 6 months ago (2012-06-11 14:51:12 UTC) #1
mmenke
LGTM http://codereview.chromium.org/10546081/diff/3006/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10546081/diff/3006/net/dns/dns_config_service_posix.cc#newcode197 net/dns/dns_config_service_posix.cc:197: return !(dns_config->nameservers.front() == kDefaultAddress); Wonder if it makes ...
8 years, 6 months ago (2012-06-11 22:38:54 UTC) #2
szym
http://codereview.chromium.org/10546081/diff/3006/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10546081/diff/3006/net/dns/dns_config_service_posix.cc#newcode197 net/dns/dns_config_service_posix.cc:197: return !(dns_config->nameservers.front() == kDefaultAddress); On 2012/06/11 22:38:54, Matt Menke ...
8 years, 6 months ago (2012-06-14 16:18:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10546081/6002
8 years, 6 months ago (2012-06-14 16:18:36 UTC) #4
commit-bot: I haz the power
8 years, 6 months ago (2012-06-14 17:48:59 UTC) #5
Change committed as 142166

Powered by Google App Engine
This is Rietveld 408576698