mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 02:10:04 -04:00
2563. [bug] Dig could leak a socket causing it to wait forever
to exit. [RT #19359]
This commit is contained in:
parent
1d88d93a9f
commit
29066a4d86
2 changed files with 11 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
2563. [bug] Dig could leak a socket causing it to wait forever
|
||||
to exit. [RT #19359]
|
||||
|
||||
2561. [doc] Add isc-config.sh(1) man page. [RT #16378]
|
||||
|
||||
2560. [bug] Add #include <config.h> to iptable.c. [RT #18258]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dighost.c,v 1.311.70.7 2009/01/20 05:04:24 marka Exp $ */
|
||||
/* $Id: dighost.c,v 1.311.70.8 2009/02/25 02:39:21 marka Exp $ */
|
||||
|
||||
/*! \file
|
||||
* \note
|
||||
|
|
@ -2396,8 +2396,14 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
|
|||
cq = query->lookup->current_query;
|
||||
if (!l->tcp_mode)
|
||||
send_udp(ISC_LIST_NEXT(cq, link));
|
||||
else
|
||||
else {
|
||||
isc_socket_cancel(query->sock, NULL,
|
||||
ISC_SOCKCANCEL_ALL);
|
||||
isc_socket_detach(&query->sock);
|
||||
sockcount--;
|
||||
debug("sockcount=%d", sockcount);
|
||||
send_tcp_connect(ISC_LIST_NEXT(cq, link));
|
||||
}
|
||||
UNLOCK_LOOKUP;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue