Index: net/socket/ssl_server_socket_openssl.cc |
diff --git a/net/socket/ssl_server_socket_openssl.cc b/net/socket/ssl_server_socket_openssl.cc |
index 7a1ce167fc67b778e9e2609a33821dbe9fd03692..84ba622d714ec7deb2c04590300dcd064cc807bb 100644 |
--- a/net/socket/ssl_server_socket_openssl.cc |
+++ b/net/socket/ssl_server_socket_openssl.cc |
@@ -305,7 +305,7 @@ int SSLServerSocketOpenSSL::BufferSend() { |
if (!send_buffer_.get()) { |
// Get a fresh send buffer out of the send BIO. |
- size_t max_read = BIO_ctrl_pending(transport_bio_); |
+ size_t max_read = BIO_pending(transport_bio_); |
if (!max_read) |
return 0; // Nothing pending in the OpenSSL write BIO. |
send_buffer_ = new DrainableIOBuffer(new IOBuffer(max_read), max_read); |