mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
LibTLS: Mark the connection as finished and disconnected on TLS error
This commit is contained in:
parent
f0e2c517fc
commit
3d24850db5
Notes:
sideshowbarker
2024-07-18 03:22:02 +09:00
Author: https://github.com/alimpfard
Commit: 3d24850db5
Pull-request: https://github.com/SerenityOS/serenity/pull/10248
1 changed files with 3 additions and 0 deletions
|
@ -226,6 +226,9 @@ bool TLSv12::check_connection_state(bool read)
|
|||
m_context.has_invoked_finish_or_error_callback = true;
|
||||
if (on_tls_error)
|
||||
on_tls_error((AlertDescription)m_context.critical_error);
|
||||
m_context.connection_finished = true;
|
||||
m_context.connection_status = ConnectionStatus::Disconnected;
|
||||
Core::Socket::close();
|
||||
return false;
|
||||
}
|
||||
if (((read && m_context.application_buffer.size() == 0) || !read) && m_context.connection_finished) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue