]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Feb 2022 09:56:17 +0000 (10:56 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Feb 2022 09:56:17 +0000 (10:56 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/lua-base4.cc
pdns/lua-recursor4.cc

index aea4146d8516c988985bf39bb7027e0674a2a027..31c2da0cf730c6a79e4525199dc117ebcb653a37 100644 (file)
@@ -245,7 +245,7 @@ void BaseLua4::prepareContext() {
                                        {"NXRRSET",  RCode::NXRRSet  },
                                        {"NOTAUTH",  RCode::NotAuth  },
                                        {"NOTZONE",  RCode::NotZone  },
-                                       {"DROP",    -2               }}; // To give backport-incompatibilityy warning
+                                       {"DROP",    -2               }}; // To give backport-incompatibility warning
   for(const auto& rcode : rcodes)
     d_pd.push_back({rcode.first, rcode.second});
 
index 6124c7328bc32507091deb4dfec29b40662db262..f9ad1032a355eda556efb7d9ccee69034e4c82b9 100644 (file)
@@ -500,7 +500,7 @@ void RecursorLua4::getFeatures(Features& features)
 static void warnDrop(const RecursorLua4::DNSQuestion& dq)
 {
   if (dq.rcode == -2) {
-    g_log << Logger::Error << "Returing -2 (pdns.DROP) is not supported anymore, see https://docs.powerdns.com/recursor/lua-scripting/hooks.html#hooksemantics" << endl;
+    g_log << Logger::Error << "Returning -2 (pdns.DROP) is not supported anymore, see https://docs.powerdns.com/recursor/lua-scripting/hooks.html#hooksemantics" << endl;
     // We *could* set policy here, but that would also mean interfering with rcode and the return code of the hook.
     // So leave it at the error message.
   }