bind9/bin/dig
Michał Kępień b9f577eb6a Fix cleanup upon an error before TCP socket creation
When a query times out after a socket is created and associated with a
given dig_query_t structure, calling isc_socket_cancel() causes
connect_done() to be run, which in turn takes care of all necessary
cleanups.  However, certain errors (e.g. get_address() returning
ISC_R_FAMILYNOSUPPORT) may prevent a TCP socket from being created in
the first place.  Since force_timeout() may be used in code handling
such errors, connect_timeout() needs to properly clean up a TCP query
which is not associated with any socket.  Call clear_query() from
connect_timeout() after attempting to send a TCP query to the next
available server if the timed out query does not have a socket
associated with it, in order to prevent dig from hanging indefinitely
due to the dig_query_t structure not being detached from its parent
dig_lookup_t structure.

(cherry picked from commit 13975b32c6)
2019-01-08 11:24:03 +01:00
..
include/dig Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
win32 4585. [port] win32: Set CompileAS value. [RT #42474] 2017-04-20 12:42:39 +10:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.1 prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00
dig.c dig: a -r option to disable .digrc 2018-11-15 13:21:21 +11:00
dig.docbook update copyrights 2019-01-02 10:26:49 +11:00
dig.html prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00
dighost.c Fix cleanup upon an error before TCP socket creation 2019-01-08 11:24:03 +01:00
host.1 prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00
host.c add -U to preparse and usage 2018-12-07 08:40:36 +11:00
host.docbook update copyrights 2019-01-02 10:26:49 +11:00
host.html prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00
Makefile.in Bail-out early in the for install loops instead of continuing because for masks the error in the middle 2018-09-03 13:49:35 +02:00
nslookup.1 prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00
nslookup.c Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
nslookup.docbook update copyrights 2019-01-02 10:26:49 +11:00
nslookup.html prepare 9.11.4rc1 2018-06-21 18:54:43 +02:00