mirror of https://github.com/getdnsapi/getdns.git
RESPSTATUS_NO_NAME when no answers found
(so for NODATA answers too)
This commit is contained in:
parent
ff1cdce6f8
commit
13e1e36ba3
|
@ -1124,6 +1124,7 @@ _getdns_create_getdns_response(getdns_dns_req *completed_request)
|
|||
int nsecure = 0, ninsecure = 0, nindeterminate = 0, nbogus = 0;
|
||||
getdns_dict *netreq_debug;
|
||||
_srvs srvs = { 0, 0, NULL };
|
||||
_getdns_rrset_spc answer_spc;
|
||||
|
||||
/* info (bools) about dns_req */
|
||||
int dnssec_return_status;
|
||||
|
@ -1235,8 +1236,8 @@ _getdns_create_getdns_response(getdns_dns_req *completed_request)
|
|||
/* TODO: Check instead if canonical_name for request_type
|
||||
* is in the answer section.
|
||||
*/
|
||||
if (GLDNS_RCODE_NOERROR ==
|
||||
GLDNS_RCODE_WIRE(netreq->response))
|
||||
if (_getdns_rrset_answer(&answer_spc, netreq->response
|
||||
, netreq->response_len))
|
||||
nanswers++;
|
||||
|
||||
if (dnssec_return_status ||
|
||||
|
|
2
stubby
2
stubby
|
@ -1 +1 @@
|
|||
Subproject commit 919b7d914ca618f4a843464d5825383f45809f3e
|
||||
Subproject commit b04882ad76cc2efdba6238f59e233844e4223908
|
Loading…
Reference in New Issue