bind9/bin/dig
Michał Kępień 13975b32c6 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.
2019-01-08 11:17:39 +01:00
..
include/dig Add some DBC checks in dighost; fix race between clear_query and send_done in dighost 2018-11-07 13:04:13 -05:00
win32 Add @OPENSSL_LIB@ to Windows project files as needed 2018-08-10 16:45:00 +02:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.1 prep 9.13.4 2018-11-22 00:20:22 +00:00
dig.c dig: a -r option to disable .digrc 2018-11-15 11:09:04 +11:00
dig.docbook update copyrights 2019-01-02 10:20:43 +11:00
dig.html prep 9.13.4 2018-11-22 00:20:22 +00:00
dighost.c Fix cleanup upon an error before TCP socket creation 2019-01-08 11:17:39 +01:00
host.1 prep 9.13.4 2018-11-22 00:20:22 +00:00
host.c add -U to preparse and usage 2018-12-07 07:43:52 +11:00
host.docbook update copyrights 2019-01-02 10:20:43 +11:00
host.html prep 9.13.4 2018-11-22 00:20:22 +00: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 12:05:45 +02:00
nslookup.1 prep 9.13.4 2018-11-22 00:20:22 +00:00
nslookup.c Abolish ip6.int support in dig and mdig 2018-11-05 19:07:31 -05:00
nslookup.docbook update copyrights 2019-01-02 10:20:43 +11:00
nslookup.html prep 9.13.4 2018-11-22 00:20:22 +00:00