2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

bin/named/zoneconf.c: Reset dns_name_t *tsig on every view iteration

This commit is contained in:
Ondřej Surý
2019-09-27 09:39:35 +02:00
parent 2e304b0b7f
commit 43925b2a8b

View File

@@ -758,7 +758,6 @@ isself(dns_view_t *myview, dns_tsigkey_t *mykey,
dns_aclenv_t *env = ns_interfacemgr_getaclenv(interfacemgr);
dns_view_t *view;
dns_tsigkey_t *key = NULL;
dns_name_t *tsig = NULL;
isc_netaddr_t netsrc;
isc_netaddr_t netdst;
@@ -773,7 +772,9 @@ isself(dns_view_t *myview, dns_tsigkey_t *mykey,
for (view = ISC_LIST_HEAD(named_g_server->viewlist);
view != NULL;
view = ISC_LIST_NEXT(view, link)) {
view = ISC_LIST_NEXT(view, link))
{
const dns_name_t *tsig = NULL;
if (view->matchrecursiveonly)
continue;