Merge branch '487-reset-dig-exit-code-after-a-tcp-connection-is-established' into 'master'

Reset dig exit code after a TCP connection is established

Closes #487

See merge request isc-projects/bind9!698
This commit is contained in:
Mark Andrews
2018-08-27 00:07:21 -04:00
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
5021. [bug] dig returned a non-zero exit code when it received a
reply over TCP after a retry. [GL #487]
5020. [func] RNG uses thread-local storage instead of locks, if
supported by platform. [GL #496]

View File

@@ -3202,6 +3202,7 @@ connect_done(isc_task_t *task, isc_event_t *event) {
UNLOCK_LOOKUP;
return;
}
exitcode = 0;
if (keep_open) {
if (keep != NULL)
isc_socket_detach(&keep);