Ensure diff variable is not read uninitialized

Coverity detected issues:
- var_decl: Declaring variable "diff" without initializer.
- uninit_use_in_call: Using uninitialized value "diff.tuples.head" when
  calling "dns_diff_clear".

(cherry picked from commit 67e773c93c)
This commit is contained in:
Petr Menšík 2022-01-19 13:35:32 +01:00 committed by Mark Andrews
parent cde36497ba
commit 1bc7552203

View file

@ -23328,7 +23328,7 @@ setserial(isc_task_t *task, isc_event_t *event) {
ENTER;
if (zone->update_disabled) {
goto failure;
goto disabled;
}
desired = sse->serial;
@ -23407,6 +23407,8 @@ failure:
dns_db_detach(&db);
}
dns_diff_clear(&diff);
disabled:
isc_event_free(&event);
dns_zone_idetach(&zone);