mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +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) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
dst_key_setbool(to, i, yesno);
|
dst_key_setbool(to, i, yesno);
|
||||||
} else {
|
} else {
|
||||||
dst_key_unsetnum(to, i);
|
dst_key_unsetbool(to, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user