mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel: Handle OOM when allocating IPv4Socket optional scratch buffer
This commit is contained in:
parent
a6db2f985a
commit
c1a0e379e6
5 changed files with 18 additions and 12 deletions
|
@ -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), {})
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue