2563. [bug] Dig could leak a socket causing it to wait forever

to exit. [RT #19359]
This commit is contained in:
Mark Andrews 2009-02-25 02:39:21 +00:00
parent 1d88d93a9f
commit 29066a4d86
2 changed files with 11 additions and 2 deletions

View file

@ -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]

View file

@ -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;
}