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
commit ab84aa6fb2
Notes: sideshowbarker 2024-07-17 20:33:50 +09:00
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;