mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibTLS: Add OutOfMemory error that will send an InternalError alert
This commit is contained in:
parent
610b380515
commit
ab84aa6fb2
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/msvisser
Commit: ab84aa6fb2
Pull-request: https://github.com/SerenityOS/serenity/pull/12629
Reviewed-by: https://github.com/alimpfard
3 changed files with 8 additions and 7 deletions
|
@ -473,7 +473,8 @@ ssize_t TLSv12::handle_handshake_payload(ReadonlyBytes vbuffer)
|
|||
write_packet(packet);
|
||||
break;
|
||||
}
|
||||
case Error::NotUnderstood: {
|
||||
case Error::NotUnderstood:
|
||||
case Error::OutOfMemory: {
|
||||
auto packet = build_alert(true, (u8)AlertDescription::InternalError);
|
||||
write_packet(packet);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue