Commit c8d4fd89 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

support setting the TSIG keys more than once

parent 72f8abc0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment