diff options
| author | 2025-10-28 15:58:45 +0000 | |
|---|---|---|
| committer | 2025-10-28 15:58:45 +0000 | |
| commit | e242ce62af1a43c15844f7e6394952f6693629f8 (patch) | |
| tree | 4f8f17d0aee5dccfed9195326ab2bf2cc4cddb53 /src | |
| parent | Fix a typo in a previous commit's deprecation message. (diff) | |
Remove some unnecessary casts in ssl_openssl.
These fields were changed from int to size_t in OpenSSL 1.1.1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 36dac31c4..bad867ff0 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -783,8 +783,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; @@ -847,7 +846,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; |
