diff options
author | Jose <jose@zeroc.com> | 2019-01-29 16:44:15 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-01-29 16:44:15 +0100 |
commit | 987194b836fa659c90a8d200a9be028bda0964fe (patch) | |
tree | d942810b0d6559d925a520a1ec257ebcd5dc8e2e | |
parent | Remove outdated comment and unnecessary cast (diff) | |
download | ice-3.7.2-rc1.tar.bz2 ice-3.7.2-rc1.tar.xz ice-3.7.2-rc1.zip |
Assert _sentBytes in OpenSSL transceiver initializationv3.7.2-rc1
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp index aa6e6b22179..8acfe25a67e 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp @@ -108,10 +108,10 @@ OpenSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal:: } else { - #ifdef ICE_USE_IOCP +#ifdef ICE_USE_IOCP + assert(_sentBytes == 0); _maxSendPacketSize = std::max(512, IceInternal::getSendBufferSize(fd)); _maxRecvPacketSize = std::max(512, IceInternal::getRecvBufferSize(fd)); - _sentBytes = 0; if(!BIO_new_bio_pair(&bio, _maxSendPacketSize, &_memBio, _maxRecvPacketSize)) { bio = 0; |