From 1fab05c776bea61d81abddda8bc10a33e0cd621b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 24 Oct 2019 10:33:56 +0200 Subject: [PATCH] dnsdist: Initialize HTTPHeaderRule members in the ctor init list --- pdns/dnsdistdist/doh.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index 194f441e5..6412ac6ce 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -690,11 +690,8 @@ catch(const exception& e) } HTTPHeaderRule::HTTPHeaderRule(const std::string& header, const std::string& regex) - : d_regex(regex) + : d_header(toLower(header)), d_regex(regex), d_visual("http[" + header+ "] ~ " + regex) { - d_header = toLower(header); - d_visual = "http[" + header+ "] ~ " + regex; - } bool HTTPHeaderRule::matches(const DNSQuestion* dq) const -- 2.40.0