2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] silence coverity warnings

3401.	[bug]		Addressed Coverity warnings. [RT #31484]
This commit is contained in:
Evan Hunt
2012-10-23 22:04:06 -07:00
parent 3b9b4c75f9
commit 47c5b8af92
38 changed files with 303 additions and 128 deletions

View File

@@ -692,7 +692,7 @@ dispatch(isc__timermgr_t *manager, isc_time_t *now) {
while (manager->nscheduled > 0 && !done) {
timer = isc_heap_element(manager->heap, 1);
INSIST(timer->type != isc_timertype_inactive);
INSIST(timer != NULL && timer->type != isc_timertype_inactive);
if (isc_time_compare(now, &timer->due) >= 0) {
if (timer->type == isc_timertype_ticker) {
type = ISC_TIMEREVENT_TICK;