summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2022-04-02 17:43:45 +0200
committerSven Wegener <swegener@gentoo.org>2022-04-02 17:49:09 +0200
commit9e700900862901ad291b1bb7af8ad09ff07f1ed2 (patch)
tree5ddd7cfcbdf20d3564850f54debcbcaba754bedf /net-dns/pdns-recursor/files
parentdev-python/werkzeug: Keyword 2.1.1 for ~m68k (diff)
downloadgentoo-9e700900862901ad291b1bb7af8ad09ff07f1ed2.tar.gz
gentoo-9e700900862901ad291b1bb7af8ad09ff07f1ed2.tar.bz2
gentoo-9e700900862901ad291b1bb7af8ad09ff07f1ed2.zip
net-dns/pdns-recursor: Update patch for warning message
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns/pdns-recursor/files')
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch b/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch
index 0d29a24f160f..594fc8eca609 100644
--- a/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch
+++ b/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch
@@ -7,7 +7,7 @@ index 1700a9fde..ed09f2680 100644
auto allowFrom = parseACL("allow-from-file", "allow-from");
- if(allowFrom->size() == 0) {
-+ if(allowFrom != nullptr && allowFrom->size() == 0) {
++ if(allowFrom == nullptr || allowFrom->size() == 0) {
if(::arg()["local-address"]!="127.0.0.1" && ::arg().asNum("local-port")==53)
g_log<<Logger::Warning<<"WARNING: Allowing queries from all IP addresses - this can be a security risk!"<<endl;
allowFrom = nullptr;