diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 23:19:38 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 23:19:38 +0000 |
commit | a75c745fea9303f01a6c9eb8915dbb292d996889 (patch) | |
tree | 1ccf09d3fe48d8aa3ac27ca40e8b81f730b88fd1 /net/socket/tcp_server_socket_win.cc | |
parent | 6a4b18ae8d1892066cdd0681449243557505e296 (diff) | |
download | chromium_src-a75c745fea9303f01a6c9eb8915dbb292d996889.zip chromium_src-a75c745fea9303f01a6c9eb8915dbb292d996889.tar.gz chromium_src-a75c745fea9303f01a6c9eb8915dbb292d996889.tar.bz2 |
Fix clang failure.
TEST=Clang bot is happy
BUG=None
TBR=willchan@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_server_socket_win.cc')
-rw-r--r-- | net/socket/tcp_server_socket_win.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/socket/tcp_server_socket_win.cc b/net/socket/tcp_server_socket_win.cc index 0edbe92..bfebff9 100644 --- a/net/socket/tcp_server_socket_win.cc +++ b/net/socket/tcp_server_socket_win.cc @@ -137,7 +137,8 @@ int TCPServerSocketWin::AcceptInternal(scoped_ptr<ClientSocket>* socket) { IPEndPoint address; if (!address.FromSockAddr(addr, addr_len)) { NOTREACHED(); - closesocket(result); + if (closesocket(result) < 0) + PLOG(ERROR) << "closesocket"; net_log_.EndEventWithNetErrorCode(NetLog::TYPE_TCP_ACCEPT, ERR_FAILED); return ERR_FAILED; } @@ -154,7 +155,8 @@ int TCPServerSocketWin::AcceptInternal(scoped_ptr<ClientSocket>* socket) { void TCPServerSocketWin::Close() { if (socket_ != INVALID_SOCKET) { - closesocket(socket_); + if (closesocket(socket_) < 0) + PLOG(ERROR) << "closesocket"; socket_ = INVALID_SOCKET; } |