From 84c29ebab0d5f066e9c531c5e417549dd7d43525 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 29 Jan 2021 17:00:45 +0100 Subject: [PATCH] dnsdist: Fix a bug when loading the rings from a file --- pdns/dnsdist-rings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-rings.cc b/pdns/dnsdist-rings.cc index 03f7f14792..8bb5ecef75 100644 --- a/pdns/dnsdist-rings.cc +++ b/pdns/dnsdist-rings.cc @@ -147,7 +147,7 @@ size_t Rings::loadFromFile(const std::string& filepath, const struct timespec& n DNSName qname(parts.at(idx++)); QType qtype(QType::chartocode(parts.at(idx++).c_str())); - if (!isResponse) { + if (isResponse) { insertResponse(when, from, qname, qtype.getCode(), 0, 0, dh, to); } else { -- 2.47.2