]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a comment: should we add the udr flag if !udrEnabled?
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 21 Oct 2020 10:17:30 +0000 (12:17 +0200)
committerOtto Moerbeek <otto@drijf.net>
Tue, 10 Nov 2020 08:17:13 +0000 (09:17 +0100)
pdns/pdns_recursor.cc

index 3afc6255357c3da76490402af29a405c6cab1f08..9d8daeaa078ade0dd7a7bc943d2231ab47f0a0d6 100644 (file)
@@ -1812,6 +1812,7 @@ static void startDoResolve(void *p)
 #ifdef HAVE_PROTOBUF
         if (t_protobufServers) {
 #ifdef NOD_ENABLED
+          // if (g_udrEnabled) ?
           pbMessage->addRR(*i, luaconfsLocal->protobufExportConfig.exportTypes, udr);
 #else
           pbMessage->addRR(*i, luaconfsLocal->protobufExportConfig.exportTypes);
@@ -1876,6 +1877,7 @@ static void startDoResolve(void *p)
         pbMessage->getResponseBuf(),
         !appliedPolicy.getName().empty() || !dc->d_policyTags.empty()});
 #ifdef NOD_ENABLED
+      // if (g_udrEnabled) ??
       pbMessage->clearUDR(pbDataForCache->d_response);
 #endif
       // Below are the fields that are not stored in the packet cache and will be appended here and on a cache hit