diff options
| author | 2025-10-28 15:59:28 +0000 | |
|---|---|---|
| committer | 2025-10-28 15:59:28 +0000 | |
| commit | a6b1ccdc3dbcdc68163dba480de554d168d7cba0 (patch) | |
| tree | 995d42669e11731d2a3a7927038889c986428f14 /modules/extra/ssl_openssl.cpp | |
| parent | Move message serialization into core_clients. (diff) | |
| parent | Remove some unnecessary casts in ssl_openssl. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/extra/ssl_openssl.cpp')
| -rw-r--r-- | modules/extra/ssl_openssl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp index 1f63c24e3..d13fa4e58 100644 --- a/modules/extra/ssl_openssl.cpp +++ b/modules/extra/ssl_openssl.cpp @@ -723,8 +723,7 @@ public: { ERR_clear_error(); char* buffer = ServerInstance->GetReadBuffer(); - int bufsiz = static_cast<int>(std::min<size_t>(ServerInstance->Config->NetBufferSize, INT_MAX)); - int ret = SSL_read(sess, buffer, bufsiz); + int ret = SSL_read(sess, buffer, ServerInstance->Config->NetBufferSize); if (!CheckRenego(user)) return -1; @@ -787,7 +786,7 @@ public: ERR_clear_error(); FlattenSendQueue(sendq, GetProfile().GetOutgoingRecordSize()); const StreamSocket::SendQueue::Element& buffer = sendq.front(); - int ret = SSL_write(sess, buffer.data(), static_cast<int>(buffer.size())); + int ret = SSL_write(sess, buffer.data(), buffer.size()); if (!CheckRenego(user)) return -1; |
