Follow-up of the previous on: also catch that on recv events

fix #3460
This commit is contained in:
louiz’
2021-11-22 12:34:15 +01:00
parent b49594ea3e
commit 18b6006e30
+1 -1
View File
@@ -261,7 +261,7 @@ void TCPSocketHandler::tls_recv()
const bool was_active = this->tls->is_active(); const bool was_active = this->tls->is_active();
try { try {
this->tls->received_data(recv_buf, static_cast<size_t>(size)); this->tls->received_data(recv_buf, static_cast<size_t>(size));
} catch (const Botan::TLS::TLS_Exception& e) { } catch (const Botan::Exception& e) {
// May happen if the server sends malformed TLS data (buggy server, // May happen if the server sends malformed TLS data (buggy server,
// or more probably we are just connected to a server that sends // or more probably we are just connected to a server that sends
// plain-text) // plain-text)