mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:49:59 -04:00
[9.18] chg: dev: Fix data race in clean_finds_at_name
Stop updating `find.result_v4` and `find.result_v4` in `clean_finds_at_name`. The values are supposed to be static. Closes #4118 Backport of MR !9108 Merge branch 'backport-4118-data-race-lib-dns-adb-c-1537-in-clean_finds_at_name-9.18' into 'bind-9.18' See merge request isc-projects/bind9!9198
This commit is contained in:
commit
541726871d
1 changed files with 0 additions and 4 deletions
|
|
@ -1563,8 +1563,6 @@ clean_finds_at_name(dns_adbname_t *name, isc_eventtype_t evtype,
|
|||
ev = &find->event;
|
||||
task = ev->ev_sender;
|
||||
ev->ev_sender = find;
|
||||
find->result_v4 = find_err_map[name->fetch_err];
|
||||
find->result_v6 = find_err_map[name->fetch6_err];
|
||||
ev->ev_type = evtype;
|
||||
ev->ev_destroy = event_free;
|
||||
ev->ev_destroy_arg = find;
|
||||
|
|
@ -3369,8 +3367,6 @@ cleanup:
|
|||
ev->ev_type = DNS_EVENT_ADBCANCELED;
|
||||
ev->ev_destroy = event_free;
|
||||
ev->ev_destroy_arg = find;
|
||||
find->result_v4 = ISC_R_CANCELED;
|
||||
find->result_v6 = ISC_R_CANCELED;
|
||||
|
||||
DP(DEF_LEVEL, "sending event %p to task %p for find %p", ev,
|
||||
task, find);
|
||||
|
|
|
|||
Loading…
Reference in a new issue