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

Kernel: Handle OOM when allocating IPv4Socket optional scratch buffer

This commit is contained in:
Brian Gianforcaro 2021-08-01 05:11:05 -07:00 committed by Andreas Kling
parent a6db2f985a
commit c1a0e379e6
5 changed files with 18 additions and 12 deletions

View file

@ -44,7 +44,7 @@ SocketHandle<UDPSocket> UDPSocket::from_port(u16 port)
}
UDPSocket::UDPSocket(int protocol, NonnullOwnPtr<DoubleBuffer> receive_buffer)
: IPv4Socket(SOCK_DGRAM, protocol, move(receive_buffer))
: IPv4Socket(SOCK_DGRAM, protocol, move(receive_buffer), {})
{
}