mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:20:03 -04:00
address memory in dns_view_getsecroots failure
(cherry picked from commit c611465739)
This commit is contained in:
parent
7bd2a9beb3
commit
0904ef3859
1 changed files with 4 additions and 2 deletions
|
|
@ -3753,8 +3753,7 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
|
|||
val->keytable = NULL;
|
||||
result = dns_view_getsecroots(val->view, &val->keytable);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
return (result);
|
||||
|
||||
goto cleanup_mutex;
|
||||
val->keynode = NULL;
|
||||
val->key = NULL;
|
||||
val->siginfo = NULL;
|
||||
|
|
@ -3787,6 +3786,9 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
|
|||
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
cleanup_mutex:
|
||||
DESTROYLOCK(&val->lock);
|
||||
|
||||
cleanup_event:
|
||||
isc_task_detach(&tclone);
|
||||
isc_event_free(ISC_EVENT_PTR(&event));
|
||||
|
|
|
|||
Loading…
Reference in a new issue