4204. [bug] 'dig +trace' failed to lookup the correct type if

the initial root ns query was retried. [RT #40296]
`

(cherry picked from commit 295a711b72)
This commit is contained in:
Mark Andrews
2015-09-12 09:06:40 +10:00
parent c8bdfc0f7b
commit ff27d0258d
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
4204. [bug] 'dig +trace' failed to lookup the correct type if
the initial root ns query was retried. [RT #40296]
4203. [test] The rrchecker system test now tests conversion
to and from unkonwn-type format. [RT #40584]
+4
View File
@@ -3757,6 +3757,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
l->edns = newedns;
n = requeue_lookup(l, ISC_TRUE);
n->origin = query->lookup->origin;
if (l->trace && l->trace_root)
n->rdtype = l->qrdtype;
dns_message_destroy(&msg);
isc_event_free(&event);
clear_query(query);
@@ -3776,6 +3778,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
n = requeue_lookup(l, ISC_TRUE);
n->tcp_mode = ISC_TRUE;
n->origin = query->lookup->origin;
if (l->trace && l->trace_root)
n->rdtype = l->qrdtype;
dns_message_destroy(&msg);
isc_event_free(&event);
clear_query(query);