mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix null pointer dereferences in udp_ready()
The query pointer was detached too early leading to null pointer
reference. Move the query_detach() after the query->canceled check.
(cherry picked from commit 9d8e8a4fcc)
This commit is contained in:
parent
1996d1b91b
commit
c13e191e52
1 changed files with 1 additions and 1 deletions
|
|
@ -2900,10 +2900,10 @@ udp_ready(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) {
|
|||
dig_lookup_t *l = query->lookup;
|
||||
|
||||
debug("in cancel handler");
|
||||
query_detach(&query);
|
||||
if (!query->canceled) {
|
||||
cancel_lookup(l);
|
||||
}
|
||||
query_detach(&query);
|
||||
lookup_detach(&l);
|
||||
return;
|
||||
} else if (eresult != ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue