mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice()
This commit is contained in:
committed by
Linus Groh
parent
c0486f93d4
commit
c10d48b72c
@@ -92,7 +92,8 @@ void TLSv12::consume(ReadonlyBytes record)
|
||||
}
|
||||
|
||||
if (index) {
|
||||
m_context.message_buffer = m_context.message_buffer.slice(index, m_context.message_buffer.size() - index);
|
||||
// FIXME: Propagate errors.
|
||||
m_context.message_buffer = MUST(m_context.message_buffer.slice(index, m_context.message_buffer.size() - index));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user