Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/extensions/filters/udp/dns_filter/dns_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class DnsAnswerRecord : public BaseDnsRecord {
};

using DnsAnswerRecordPtr = std::unique_ptr<DnsAnswerRecord>;
using DnsAnswerMap = std::unordered_multimap<std::string, DnsAnswerRecordPtr>;
using DnsAnswerMap = std::multimap<std::string, DnsAnswerRecordPtr>;

/**
* DnsSrvRecord represents a single answer record for a service which is to be serialized and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ bool DnsResponseValidator::validateDnsResponseObject(DnsQueryContextPtr& context

bool DnsResponseValidator::parseAnswerRecords(DnsAnswerMap& answers, const uint16_t answer_count,
const Buffer::InstancePtr& buffer, uint64_t& offset) {
answers.reserve(answer_count);
for (auto index = 0; index < answer_count; index++) {
ENVOY_LOG(trace, "Parsing [{}/{}] answers", index, answer_count);
auto rec = parseDnsAnswerRecord(buffer, offset);
Expand Down