dns_server: ignore non-matched record.
This commit is contained in:
@@ -3120,10 +3120,8 @@ static int _dns_server_process_answer_A(struct dns_rrs *rrs, struct dns_request
|
|||||||
|
|
||||||
if (request->qtype != DNS_T_A) {
|
if (request->qtype != DNS_T_A) {
|
||||||
/* ignore non-matched query type */
|
/* ignore non-matched query type */
|
||||||
if (request->dualstack_selection == 0) {
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* get A result */
|
/* get A result */
|
||||||
dns_get_A(rrs, name, DNS_MAX_CNAME_LEN, &ttl, addr);
|
dns_get_A(rrs, name, DNS_MAX_CNAME_LEN, &ttl, addr);
|
||||||
|
|||||||
Reference in New Issue
Block a user