From 19af5fb6b2ff720ad7dd9e81fe74512fa1c7057f Mon Sep 17 00:00:00 2001 From: Mike Beaumont Date: Tue, 9 Jul 2024 13:08:46 +0200 Subject: [PATCH] test: don't error if DNS message header is 0 Signed-off-by: Mike Beaumont --- .../filters/udp/dns_filter/dns_filter_test_utils.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/extensions/filters/udp/dns_filter/dns_filter_test_utils.cc b/test/extensions/filters/udp/dns_filter/dns_filter_test_utils.cc index ed873d300424..f2bb9fc1264a 100644 --- a/test/extensions/filters/udp/dns_filter/dns_filter_test_utils.cc +++ b/test/extensions/filters/udp/dns_filter/dns_filter_test_utils.cc @@ -182,10 +182,6 @@ bool DnsResponseValidator::validateDnsResponseObject(DnsQueryContextPtr& context } context->id_ = static_cast(context->header_.id); - if (context->id_ == 0) { - ENVOY_LOG(debug, "No ID in DNS Response"); - return false; - } // Almost always, we will have only one query here. Per the RFC, QDCOUNT is usually 1 context->queries_.reserve(context->header_.questions);