1 |
commit: 9e700900862901ad291b1bb7af8ad09ff07f1ed2 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 15:43:45 2022 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 15:49:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e700900 |
7 |
|
8 |
net-dns/pdns-recursor: Update patch for warning message |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
12 |
|
13 |
net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
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 |
17 |
index 0d29a24f160f..594fc8eca609 100644 |
18 |
--- a/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch |
19 |
+++ b/net-dns/pdns-recursor/files/pdns-recursor-4.6.1-parseACL.patch |
20 |
@@ -7,7 +7,7 @@ index 1700a9fde..ed09f2680 100644 |
21 |
auto allowFrom = parseACL("allow-from-file", "allow-from"); |
22 |
|
23 |
- if(allowFrom->size() == 0) { |
24 |
-+ if(allowFrom != nullptr && allowFrom->size() == 0) { |
25 |
++ if(allowFrom == nullptr || allowFrom->size() == 0) { |
26 |
if(::arg()["local-address"]!="127.0.0.1" && ::arg().asNum("local-port")==53) |
27 |
g_log<<Logger::Warning<<"WARNING: Allowing queries from all IP addresses - this can be a security risk!"<<endl; |
28 |
allowFrom = nullptr; |