mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 13:49:05 +00:00
LibDNS: Use AllocatingMemoryStream
in DNS package construction
This commit is contained in:
parent
202175cf4c
commit
87c64834ca
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/timschumi
Commit: 87c64834ca
Pull-request: https://github.com/SerenityOS/serenity/pull/16992
Reviewed-by: https://github.com/ADKaster ✅
8 changed files with 31 additions and 28 deletions
|
@ -110,7 +110,7 @@ void MulticastDNS::announce()
|
|||
|
||||
ErrorOr<size_t> MulticastDNS::emit_packet(Packet const& packet, sockaddr_in const* destination)
|
||||
{
|
||||
auto buffer = packet.to_byte_buffer();
|
||||
auto buffer = TRY(packet.to_byte_buffer());
|
||||
if (!destination)
|
||||
destination = &mdns_addr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue