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

Unified Diff: net/proxy/proxy_resolver_v8.cc

Issue 2821019: Do not try to resolve empty hostnames. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_v8.cc
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
index 4b54cb79d80a8ad1c2e0a4d64c2099ac1faa7260..6e346c77a6e4a74f6ec2b5f1fdc136d30afe4a47 100644
--- a/net/proxy/proxy_resolver_v8.cc
+++ b/net/proxy/proxy_resolver_v8.cc
@@ -413,7 +413,7 @@ class ProxyResolverV8::Context {
// We need at least one string argument.
std::string hostname;
- if (!GetHostnameArgument(args, &hostname))
+ if (!GetHostnameArgument(args, &hostname) || hostname.empty())
return v8::Null();
std::string ip_address;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698