summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-04-16 12:29:54 +0545
committerPhil Davis <phil.davis@inf.org>2015-04-16 12:29:54 +0545
commit9b837c5df64d2aca5e3038514794b84ad9aa6b62 (patch)
treef418df2894f0eef89e1c827fbde4ee47bdcac85b
parent563771b16963903f4cf4a5fb7132ccef1acc05c3 (diff)
downloadpfsense-9b837c5df64d2aca5e3038514794b84ad9aa6b62.zip
pfsense-9b837c5df64d2aca5e3038514794b84ad9aa6b62.tar.gz
Fix unbound warning when dnsallowoverride off and forwarding on
Reported in forum: https://forum.pfsense.org/index.php?topic=92437.0 The $ns array was being used further down, but if dnsallowoverride was off, the array never got created.
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 914dd49b4..e644bdc 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -243,6 +243,8 @@ EOF;
$dnsservers[] = $nameserver;
}
}
+ } else {
+ $ns = array();
}
$sys_dnsservers = array_unique(get_dns_servers());
foreach ($sys_dnsservers as $sys_dnsserver) {
OpenPOWER on IntegriCloud