From 3aa876deef257fc6d63da32df0742ed8cf91aaa1 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 5 May 2022 10:04:20 +0200 Subject: [PATCH] Fix API issue when asking config values for allow-from or allow-notify-from --- pdns/ws-recursor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index b4c46c78ee..688718b695 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -119,10 +119,10 @@ static void apiServerConfigACL(const std::string& aclType, HttpRequest* req, Htt // Return currently configured ACLs vector 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); } -- 2.47.2