mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
Fix 'view' variable scope in load_configuration()
Commit b69e783164 changed the scope of the
local 'view' variable in load_configuration(), but the code section
guarded by the #ifdef USE_DNSRPS directive was not adjusted accordingly,
causing build errors for DNSRPS-enabled builds. Fix the latter by
declaring the 'view' variable inside the loop in the DNSRPS-specific
block of code.
This commit is contained in:
parent
f3def4e4ed
commit
183cd1bbe5
1 changed files with 1 additions and 1 deletions
|
|
@ -9720,7 +9720,7 @@ load_configuration(const char *filename, named_server_t *server,
|
|||
* Start and connect to the DNS Response Policy Service
|
||||
* daemon, dnsrpzd, for each view that uses DNSRPS.
|
||||
*/
|
||||
for (view = ISC_LIST_HEAD(server->viewlist); view != NULL;
|
||||
for (dns_view_t *view = ISC_LIST_HEAD(server->viewlist); view != NULL;
|
||||
view = ISC_LIST_NEXT(view, link))
|
||||
{
|
||||
result = dns_dnsrps_connect(view->rpzs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue