From: Otto Moerbeek Date: Thu, 5 May 2022 08:04:20 +0000 (+0200) Subject: Fix API issue when asking config values for allow-from or allow-notify-from X-Git-Tag: auth-4.8.0-alpha0~98^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3aa876deef257fc6d63da32df0742ed8cf91aaa1;p=thirdparty%2Fpdns.git Fix API issue when asking config values for allow-from or allow-notify-from --- 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); }