summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-02 14:38:05 +0000
committerpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-02 14:38:05 +0000
commit7c75b4ce3dab78609129944ee91131e62ca36085 (patch)
tree7b667951f46397fafc6f6a187ebf5f258e4e3593 /net/base
parent894f634cee519f550410ee9bd98f76a3bd956736 (diff)
downloadchromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.zip
chromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.tar.gz
chromium_src-7c75b4ce3dab78609129944ee91131e62ca36085.tar.bz2
GCC 4.6 -Wunused-but-set-variable cleanup.
BUG=87490 TEST=net_unittests Review URL: http://codereview.chromium.org/7261018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/x509_certificate.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/base/x509_certificate.cc b/net/base/x509_certificate.cc
index e73b5d5..1f27504 100644
--- a/net/base/x509_certificate.cc
+++ b/net/base/x509_certificate.cc
@@ -406,7 +406,6 @@ bool X509Certificate::VerifyHostname(
bool found_alpha = false;
bool found_ip6_chars = false;
- bool found_hyphen = false;
int dot_count = 0;
size_t first_dot_index = std::string::npos;
@@ -422,9 +421,7 @@ bool X509Certificate::VerifyHostname(
first_dot_index = reference_name.length();
} else if (c == ':') {
found_ip6_chars = true;
- } else if (c == '-') {
- found_hyphen = true;
- } else if (!IsAsciiDigit(c)) {
+ } else if (c != '-' && !IsAsciiDigit(c)) {
LOG(WARNING) << "Invalid char " << c << " in hostname " << hostname;
return false;
}