1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibTLS: Add OutOfMemory error that will send an InternalError alert

This commit is contained in:
Michiel Visser 2022-02-18 15:58:27 +01:00 committed by Ali Mohammad Pur
parent 610b380515
commit ab84aa6fb2
3 changed files with 8 additions and 7 deletions

View file

@ -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;