]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor the dns_rpz_add/delete to use local rpz copy
authorOndřej Surý <ondrej@isc.org>
Tue, 8 Mar 2022 16:13:26 +0000 (17:13 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 4 Apr 2022 19:20:05 +0000 (21:20 +0200)
commitb6e885c97ff5e80d9108fb53eed28cf11aadbb86
treec02e67e7cf786ab0068c3307458625e7021c4c30
parent840179a2473d65bfa193f4f8519e52517bbfa95e
Refactor the dns_rpz_add/delete to use local rpz copy

Previously dns_rpz_add() were passed dns_rpz_zones_t and index to .zones
array.  Because we actually attach to dns_rpz_zone_t, we should be using
the local pointer instead of passing the index and "finding" the
dns_rpz_zone_t again.

Additionally, dns_rpz_add() and dns_rpz_delete() were used only inside
rpz.c, so make them static.
lib/dns/include/dns/rpz.h
lib/dns/rpz.c