mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Use a while loop instead of a for loop in dns__zone_updatesigs()
Replace the outer for loop with a while loop to emphasize it keeps processing the first element of diff->tuples, which changes on each iteration due to tuples being removed from diff->tuples by move_matching_tuples().
This commit is contained in:
@@ -7338,9 +7338,7 @@ dns__zone_updatesigs(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *version,
|
|||||||
dns_difftuple_t *tuple;
|
dns_difftuple_t *tuple;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
for (tuple = ISC_LIST_HEAD(diff->tuples);
|
while ((tuple = ISC_LIST_HEAD(diff->tuples)) != NULL) {
|
||||||
tuple != NULL;
|
|
||||||
tuple = ISC_LIST_HEAD(diff->tuples)) {
|
|
||||||
isc_stdtime_t exp = expire;
|
isc_stdtime_t exp = expire;
|
||||||
|
|
||||||
if (keyexpire != 0 &&
|
if (keyexpire != 0 &&
|
||||||
|
Reference in New Issue
Block a user