2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

support setting the TSIG keys more than once

This commit is contained in:
Andreas Gustafsson
2000-01-21 22:36:59 +00:00
parent 72f8abc08b
commit c8d4fd8926

View File

@@ -360,15 +360,13 @@ dns_view_sethints(dns_view_t *view, dns_db_t *hints) {
void
dns_view_setkeyring(dns_view_t *view, dns_tsig_keyring_t *ring) {
/*
* Set the view's static TSIG keyring
* Set the view's static TSIG keyring.
*/
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->statickeys == NULL);
REQUIRE(ring != NULL);
if (view->statickeys != NULL)
dns_tsig_destroy(&view->statickeys);
view->statickeys = ring;
}