]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix API issue when asking config values for allow-from or allow-notify-from
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 5 May 2022 08:04:20 +0000 (10:04 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 5 May 2022 08:04:57 +0000 (10:04 +0200)
pdns/ws-recursor.cc

index b4c46c78ee8a3c301b19b5e61ebc61efa7650ce3..688718b6958bca3111a107adde6f0f34eb29c0d7 100644 (file)
@@ -119,10 +119,10 @@ static void apiServerConfigACL(const std::string& aclType, HttpRequest* req, Htt
 
   // Return currently configured ACLs
   vector<string> entries;
-  if (aclType == "allow-from") {
+  if (t_allowFrom && aclType == "allow-from") {
     t_allowFrom->toStringVector(&entries);
   }
-  else if (aclType == "allow-notify-from") {
+  else if (t_allowNotifyFrom && aclType == "allow-notify-from") {
     t_allowNotifyFrom->toStringVector(&entries);
   }