mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 17:46:40 -04:00
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:
parent
cde36497ba
commit
1bc7552203
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue