]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make formatter happy
authorphonedph1 <ph1@slurpee3>
Thu, 19 Sep 2024 22:51:23 +0000 (16:51 -0600)
committerphonedph1 <ph1@slurpee3>
Thu, 19 Sep 2024 22:51:23 +0000 (16:51 -0600)
pdns/dnsdistdist/dnsdist-cache.cc

index 8baf99b410993a247629ae8c7afe9e30bb715d83..47853bb663c229ce5d86b290f88f81708253c72f 100644 (file)
@@ -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<int64_t>(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<int64_t>(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());