diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 04:49:09 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 04:49:09 +0000 |
commit | 0597a7a276c6a4939f0b8f8e912b8cd51d8e829b (patch) | |
tree | cd170952ea22859cfbc275df67834dcc150ca686 /cloud_print | |
parent | 60e77b317dccb3c64fb734cdc178737812a03b97 (diff) | |
download | chromium_src-0597a7a276c6a4939f0b8f8e912b8cd51d8e829b.zip chromium_src-0597a7a276c6a4939f0b8f8e912b8cd51d8e829b.tar.gz chromium_src-0597a7a276c6a4939f0b8f8e912b8cd51d8e829b.tar.bz2 |
Fix crash when calling HttpServer::GetLocalAddress when there is no server sock.
This happens when the port is already in use.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/22368003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/gcp20/prototype/privet_http_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud_print/gcp20/prototype/privet_http_server.cc b/cloud_print/gcp20/prototype/privet_http_server.cc index 0ffcfbc..0a21059 100644 --- a/cloud_print/gcp20/prototype/privet_http_server.cc +++ b/cloud_print/gcp20/prototype/privet_http_server.cc @@ -85,10 +85,10 @@ bool PrivetHttpServer::Start(uint16 port) { if (server_->GetLocalAddress(&address) != net::OK) { NOTREACHED() << "Cannot start HTTP server"; - } else { - VLOG(1) << "Address of HTTP server: " << address.ToString(); + return false; } + VLOG(1) << "Address of HTTP server: " << address.ToString(); return true; } |