diff -ru dnsdist-1.9.12.orig/dnsdist-discovery.cc dnsdist-1.9.12.CVE-2026-33599/dnsdist-discovery.cc --- dnsdist-1.9.12.orig/dnsdist-discovery.cc 2026-03-13 16:09:16.000000000 +0100 +++ dnsdist-1.9.12.CVE-2026-33599/dnsdist-discovery.cc 2026-04-03 15:36:23.628168421 +0200 @@ -216,7 +216,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 {