From: phonedph1 Date: Thu, 19 Sep 2024 22:51:23 +0000 (-0600) Subject: make formatter happy X-Git-Tag: rec-5.2.0-alpha1~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85670d43a8a9b86d63461437ca510d5428cab070;p=thirdparty%2Fpdns.git make formatter happy --- diff --git a/pdns/dnsdistdist/dnsdist-cache.cc b/pdns/dnsdistdist/dnsdist-cache.cc index 8baf99b410..47853bb663 100644 --- a/pdns/dnsdistdist/dnsdist-cache.cc +++ b/pdns/dnsdistdist/dnsdist-cache.cc @@ -511,10 +511,10 @@ uint64_t DNSDistPacketCache::dump(int fileDesc, bool rawResponse) fprintf(filePtr.get(), "%s %" PRId64 " %s %s ; ecs %s, rcode %" PRIu8 ", key %" PRIu32 ", length %" PRIu16 ", received over UDP %d, added %" PRId64 ", dnssecOK %d, raw query flags %" PRIu16, value.qname.toString().c_str(), static_cast(value.validity - now), QClass(value.qclass).toString().c_str(), QType(value.qtype).toString().c_str(), value.subnet ? value.subnet.get().toString().c_str() : "empty", rcode, entry.first, value.len, value.receivedOverUDP ? 1 : 0, static_cast(value.added), value.dnssecOK ? 1 : 0, value.queryFlags); if (rawResponse) { - std::string rawDataResponse = Base64Encode(value.value); - fprintf(filePtr.get(), ", base64response %s", rawDataResponse.c_str()); - } - fprintf(filePtr.get(), "\n"); + std::string rawDataResponse = Base64Encode(value.value); + fprintf(filePtr.get(), ", base64response %s", rawDataResponse.c_str()); + } + fprintf(filePtr.get(), "\n"); } catch (...) { fprintf(filePtr.get(), "; error printing '%s'\n", value.qname.empty() ? "EMPTY" : value.qname.toString().c_str());