Merge branch '2564-nslookup-segfaults-for-servfail' into 'main'

Add workaround for "nslookup segfaults for SERVFAIL"

See merge request isc-projects/bind9!4796
This commit is contained in:
Diego dos Santos Fronza
2021-04-26 14:30:46 +00:00
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
5628. [bug] Host and nslookup could die on SERVFAIL response.
[GL #2564]
5627. [bug] RRSIG(SOA) RRsets placed anywhere else than at zone apex
were triggering infinite resigning loops. This has been
fixed. [GL #2650]

View File

@@ -1692,14 +1692,13 @@ _query_detach(dig_query_t **queryp, const char *file, unsigned int line) {
query_detach(&lookup->current_query);
}
if (ISC_LINK_LINKED(query, link)) {
ISC_LIST_UNLINK(lookup->q, query, link);
}
debug("%s:%u:query_detach(%p) = %" PRIuFAST32, file, line, query,
isc_refcount_current(&query->references) - 1);
if (isc_refcount_decrement(&query->references) == 1) {
if (ISC_LINK_LINKED(query, link)) {
ISC_LIST_UNLINK(lookup->q, query, link);
}
destroy_query(query, file, line);
}
}