]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix 'view' variable scope in load_configuration()
authorMichał Kępień <michal@isc.org>
Wed, 1 Feb 2023 10:22:59 +0000 (11:22 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 1 Feb 2023 10:22:59 +0000 (11:22 +0100)
commit183cd1bbe528886f30485b84f1675bb4708b6ec9
tree4972bb61eec590679285101f8193ed478db5111f
parentf3def4e4edcaecef6fd4cb95376dfcc9a4a6d467
Fix 'view' variable scope in load_configuration()

Commit b69e783164cd50e3306364668558e460617ee8fc 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.
bin/named/server.c