Skip to content

Commit

Permalink
Get validation chain avoiding roadblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Nov 15, 2015
1 parent 1bb2daf commit afe5db6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dnssec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit afe5db6

Please sign in to comment.