The ENSURE assertion at the end of dns_diff_appendminimal() is not
needed because it is placed right after code which resets *tuplep to
NULL if it is not NULL already.
The INSIST assertion in move_matching_tuples() checks the same pointer
again.
ISC_LIST_APPEND(diff->tuples, *tuplep, link);
*tuplep = NULL;
}
-
- ENSURE(*tuplep == NULL);
}
static isc_stdtime_t
dns_difftuple_t *next = find_next_matching_tuple(cur);
ISC_LIST_UNLINK(src->tuples, cur, link);
dns_diff_appendminimal(dst, &cur);
- INSIST(cur == NULL);
cur = next;
} while (cur != NULL);
}