mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Fix bug in dst_key_copymetadata
When copying metadata from one dst_key to another, when the source dst_key has a boolean metadata unset, the destination dst_key will have a numeric metadata unset instead. This means that if a key has KSK or ZSK unset, we may be clearing the Predecessor or Successor metadata in the destination dst_key.
This commit is contained in:
@@ -2708,7 +2708,7 @@ dst_key_copy_metadata(dst_key_t *to, dst_key_t *from) {
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
dst_key_setbool(to, i, yesno);
|
||||
} else {
|
||||
dst_key_unsetnum(to, i);
|
||||
dst_key_unsetbool(to, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user