summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/MulticastDNS.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-16 08:47:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-16 17:49:42 +0200
commit53d015082749b9bf43a2160d5553bc0e9e1086ef (patch)
tree75a4730a88c2a99bb3d0af0200274d1c72f430d7 /Userland/Services/LookupServer/MulticastDNS.cpp
parentc4d0b0cd6b0d0b2c773ce8f11ac9d0aaec36f9b6 (diff)
downloadserenity-53d015082749b9bf43a2160d5553bc0e9e1086ef.zip
AK+Userland: Remove nullability feature for the ByteBuffer type
Nobody seems to use this particular feature, in fact there were some bugs which were uncovered by removing operator bool.
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()) {