summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/base/tcp_client_socket_win.cc1
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);