summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/MulticastDNS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/LookupServer/MulticastDNS.cpp')
-rw-r--r--Userland/Services/LookupServer/MulticastDNS.cpp2
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()) {