mirror of https://github.com/getdnsapi/getdns.git
Get validation chain avoiding roadblocks
This commit is contained in:
parent
1bb2daff1e
commit
afe5db6b55
|
@ -3106,8 +3106,9 @@ static void check_chain_complete(chain_head *chain)
|
||||||
, context->trust_anchors_len));
|
, context->trust_anchors_len));
|
||||||
#endif
|
#endif
|
||||||
#ifdef DNSSEC_ROADBLOCK_AVOIDANCE
|
#ifdef DNSSEC_ROADBLOCK_AVOIDANCE
|
||||||
if ( dnsreq->dnssec_roadblock_avoidance
|
if ( dnsreq->dnssec_roadblock_avoidance
|
||||||
&& dnsreq->netreqs[0]->dnssec_status == GETDNS_DNSSEC_BOGUS) {
|
&& !dnsreq->avoid_dnssec_roadblocks
|
||||||
|
&& dnsreq->netreqs[0]->dnssec_status == GETDNS_DNSSEC_BOGUS) {
|
||||||
|
|
||||||
getdns_return_t r = GETDNS_RETURN_GOOD;
|
getdns_return_t r = GETDNS_RETURN_GOOD;
|
||||||
getdns_network_req **netreq_p, *netreq;
|
getdns_network_req **netreq_p, *netreq;
|
||||||
|
@ -3119,7 +3120,8 @@ static void check_chain_complete(chain_head *chain)
|
||||||
; netreq_p++) {
|
; netreq_p++) {
|
||||||
|
|
||||||
netreq->state = NET_REQ_NOT_SENT;
|
netreq->state = NET_REQ_NOT_SENT;
|
||||||
(void) _getdns_submit_netreq(netreq);
|
netreq->owner = dnsreq;
|
||||||
|
r = _getdns_submit_netreq(netreq);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue