diff options
Diffstat (limited to 'Userland/Services/LookupServer/MulticastDNS.cpp')
-rw-r--r-- | Userland/Services/LookupServer/MulticastDNS.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/LookupServer/MulticastDNS.cpp b/Userland/Services/LookupServer/MulticastDNS.cpp index 31131c2a46..268c15ac04 100644 --- a/Userland/Services/LookupServer/MulticastDNS.cpp +++ b/Userland/Services/LookupServer/MulticastDNS.cpp @@ -168,7 +168,7 @@ Vector<DNSAnswer> MulticastDNS::lookup(const DNSName& name, DNSRecordType record } auto buffer = receive(1024); - if (!buffer) + if (buffer.is_empty()) return {}; auto optional_packet = DNSPacket::from_raw_packet(buffer.data(), buffer.size()); if (!optional_packet.has_value()) { |