diff options
author | Phil Davis <phil.davis@inf.org> | 2015-04-16 12:29:54 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-04-16 12:29:54 +0545 |
commit | 9b837c5df64d2aca5e3038514794b84ad9aa6b62 (patch) | |
tree | f418df2894f0eef89e1c827fbde4ee47bdcac85b | |
parent | 563771b16963903f4cf4a5fb7132ccef1acc05c3 (diff) | |
download | pfsense-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.inc | 2 |
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) { |