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

Check isc_timer_reset return

This commit is contained in:
Francis Dupont
2016-06-04 09:08:48 +02:00
parent aee6412db2
commit e211ffb1f1

View File

@@ -1209,8 +1209,9 @@ dns_catz_update_taskaction(isc_task_t *task, isc_event_t *event) {
zone->updatepending = ISC_FALSE;
dns_catz_update_from_db(zone->db, zone->catzs);
dns_db_detach(&zone->db);
isc_timer_reset(zone->updatetimer, isc_timertype_inactive,
NULL, NULL, ISC_TRUE);
result = isc_timer_reset(zone->updatetimer, isc_timertype_inactive,
NULL, NULL, ISC_TRUE);
RUNTIME_CHECK(result == ISC_R_SUCCESS);
isc_event_free(&event);
result = isc_time_now(&zone->lastupdated);
RUNTIME_CHECK(result == ISC_R_SUCCESS);