diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-31 17:24:55 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-31 17:24:55 +0000 |
commit | 6d86cbb4e1526ea278bccdc8df51dd5b3a63e9fb (patch) | |
tree | a99c4f2e1d96f8bc5e01ee560fbf896b98aff621 /net | |
parent | a1e077900dd8b33fb7ea368c01f3d8ebcb42d9cd (diff) | |
download | chromium_src-6d86cbb4e1526ea278bccdc8df51dd5b3a63e9fb.zip chromium_src-6d86cbb4e1526ea278bccdc8df51dd5b3a63e9fb.tar.gz chromium_src-6d86cbb4e1526ea278bccdc8df51dd5b3a63e9fb.tar.bz2 |
Ensures that writes are at least one byte, matching the libevent version. As discussed in http://codereview.chromium.org/55014 .
Review URL: http://codereview.chromium.org/56090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/tcp_client_socket_win.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/base/tcp_client_socket_win.cc b/net/base/tcp_client_socket_win.cc index 29d560d..7c10d2d 100644 --- a/net/base/tcp_client_socket_win.cc +++ b/net/base/tcp_client_socket_win.cc @@ -218,6 +218,7 @@ int TCPClientSocket::Write(const char* buf, DCHECK(socket_ != INVALID_SOCKET); DCHECK(wait_state_ == NOT_WAITING); DCHECK(!callback_); + DCHECK(buf_len > 0); buffer_.len = buf_len; buffer_.buf = const_cast<char*>(buf); |