diff -ru dnsdist-2.0.3.orig/dnsdist-discovery.cc dnsdist-2.0.3.CVE-2026-33599/dnsdist-discovery.cc --- dnsdist-2.0.3.orig/dnsdist-discovery.cc 2026-03-12 16:00:00.000000000 +0100 +++ dnsdist-2.0.3.CVE-2026-33599/dnsdist-discovery.cc 2026-04-03 15:53:44.963486910 +0200 @@ -217,7 +217,7 @@ } /* we prefer the address we already know, whenever possible */ - if (tentativeAddresses.count(existingAddr) != 0) { + if (tentativeAddresses.empty() || tentativeAddresses.count(existingAddr) != 0) { tempConfig.d_addr = existingAddr; } else {