bind9/lib
Matthijs Mekking fcf8fb4f39 Keep track of allow client detach
The stale-answer-client-timeout feature introduced a dependancy on
when a client may be detached from the handle. The dboption
DNS_DBFIND_STALEONLY was reused to track this attribute. This overloads
the meaning of this database option, and actually introduced a bug
because the option was checked in other places. In particular, in
'ns_query_done()' there is a check for 'RECURSING(qctx->client) &&
(!QUERY_STALEONLY(&qctx->client->query) || ...' and the condition is
satisfied because recursion has not completed yet and
DNS_DBFIND_STALEONLY is already cleared by that time (in
query_lookup()), because we found a useful answer and we should detach
the client from the handle after sending the response.

Add a new boolean to the client structure to keep track of client
detach from handle is allowed or not. It is only disallowed if we are
in a staleonly lookup and we didn't found a useful answer.

(cherry picked from commit fee164243f)
2021-04-02 13:27:43 +02:00
..
bind9 Stop including dnstap headers from <dns/dnstap.h> 2021-02-16 12:08:21 +11:00
dns Move the dummy shims to single ifndef GSSAPI block 2021-04-01 10:42:32 +02:00
irs Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
isc Merge branch 'bind-dyndb-ldap-v9.16.13' into 'main' 2021-03-26 18:48:06 +00:00
isccc Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
isccfg Add purge-keys config option 2021-02-23 09:18:55 +01:00
ns Keep track of allow client detach 2021-04-02 13:27:43 +02:00
samples Add libssl libraries to Windows build 2020-12-09 10:46:16 +01:00
win32/bindevt update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00