mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Remove initialize goal code
Since keys now have their goals initialized in 'keymgr_key_init()', remove this redundant piece of code in 'keymgr_key_run()'.
This commit is contained in:
@@ -1842,19 +1842,6 @@ dns_keymgr_run(const dns_name_t *origin, dns_rdataclass_t rdclass,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* This is possibly an active key created
|
|
||||||
* outside dnssec-policy. Initialize goal,
|
|
||||||
* if not set.
|
|
||||||
*/
|
|
||||||
dst_key_state_t goal;
|
|
||||||
if (dst_key_getstate(dkey->key, DST_KEY_GOAL,
|
|
||||||
&goal) != ISC_R_SUCCESS) {
|
|
||||||
dst_key_setstate(dkey->key,
|
|
||||||
DST_KEY_GOAL,
|
|
||||||
OMNIPRESENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save the matched key only if it is active
|
* Save the matched key only if it is active
|
||||||
* or desires to be active.
|
* or desires to be active.
|
||||||
|
Reference in New Issue
Block a user