From afe5db6b557f064e8f1f8c69f554864bbc447cfd Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Sat, 14 Nov 2015 20:00:13 -0500 Subject: [PATCH] Get validation chain avoiding roadblocks --- src/dnssec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dnssec.c b/src/dnssec.c index c8bfd938a..3fdff91b8 100644 --- a/src/dnssec.c +++ b/src/dnssec.c @@ -3106,8 +3106,9 @@ static void check_chain_complete(chain_head *chain) , context->trust_anchors_len)); #endif #ifdef DNSSEC_ROADBLOCK_AVOIDANCE - if ( dnsreq->dnssec_roadblock_avoidance - && dnsreq->netreqs[0]->dnssec_status == GETDNS_DNSSEC_BOGUS) { + if ( dnsreq->dnssec_roadblock_avoidance + && !dnsreq->avoid_dnssec_roadblocks + && dnsreq->netreqs[0]->dnssec_status == GETDNS_DNSSEC_BOGUS) { getdns_return_t r = GETDNS_RETURN_GOOD; getdns_network_req **netreq_p, *netreq; @@ -3119,7 +3120,8 @@ static void check_chain_complete(chain_head *chain) ; netreq_p++) { netreq->state = NET_REQ_NOT_SENT; - (void) _getdns_submit_netreq(netreq); + netreq->owner = dnsreq; + r = _getdns_submit_netreq(netreq); } return; }