]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove initialize goal code
authorMatthijs Mekking <matthijs@isc.org>
Tue, 2 Feb 2021 19:02:54 +0000 (20:02 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 3 Feb 2021 07:42:51 +0000 (08:42 +0100)
Since keys now have their goals initialized in 'keymgr_key_init()',
remove this redundant piece of code in 'keymgr_key_run()'.

(cherry picked from commit 82632fa6d92ef37508fc77a14255e4d1ff12e09d)

lib/dns/keymgr.c

index 170eca37f4ba23a7bd78564996682397e8394c5f..fccd3c68f4aa79053d6037c912d0c0dc3dcf6f5b 100644 (file)
@@ -1842,19 +1842,6 @@ dns_keymgr_run(const dns_name_t *origin, dns_rdataclass_t rdclass,
                                        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
                                 * or desires to be active.