Handle ISC_R_SHUTTINGDOWN in dighost.c:tcp_connected

dig was making further queries after SIGINT was recieved rather
than shutting down as expected.
This commit is contained in:
Mark Andrews 2023-12-07 13:36:46 +11:00
parent 270c51f328
commit ae24792ea2

View file

@ -3566,6 +3566,12 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) {
debug("tcp_connected(%p, %s, %p)", handle, isc_result_totext(eresult),
query);
if (eresult == ISC_R_SHUTTINGDOWN) {
query_detach(&query);
cancel_all();
return;
}
lookup_attach(query->lookup, &l);
if (eresult == ISC_R_CANCELED || eresult == ISC_R_TLSBADPEERCERT ||