From: Evan Hunt Date: Tue, 31 Jan 2023 21:30:12 +0000 (-0800) Subject: on connect error, send the actual result to the caller X-Git-Tag: v9.19.12~57^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbadc97387a466c970e54c2801c02cca51887f93;p=thirdparty%2Fbind9.git on connect error, send the actual result to the caller formerly if a connection failed in dns_request, the callback function was called with ISC_R_CANCELED. change this to the actual result code so the failure is correctly reported. --- diff --git a/lib/dns/request.c b/lib/dns/request.c index e3bef774b57..f78a57d7a32 100644 --- a/lib/dns/request.c +++ b/lib/dns/request.c @@ -921,7 +921,7 @@ req_connected(isc_result_t eresult, isc_region_t *region, void *arg) { req_send(request); } else { request_cancel(request); - req_sendevent(request, ISC_R_CANCELED); + req_sendevent(request, eresult); } UNLOCK(&request->requestmgr->locks[request->hash]);