mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 10:30:00 -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
5e635d4c84
commit
ca952e22ff
1 changed files with 3 additions and 1 deletions
|
|
@ -23533,7 +23533,7 @@ setserial(isc_task_t *task, isc_event_t *event) {
|
|||
ENTER;
|
||||
|
||||
if (zone->update_disabled) {
|
||||
goto failure;
|
||||
goto disabled;
|
||||
}
|
||||
|
||||
desired = sse->serial;
|
||||
|
|
@ -23612,6 +23612,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