|
@@ -87,8 +87,6 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
|
for (i = 0; i < req->nquestions; ++i) {
|
|
for (i = 0; i < req->nquestions; ++i) {
|
|
if (req->questions[i]->dns_question_class != EVDNS_CLASS_INET)
|
|
if (req->questions[i]->dns_question_class != EVDNS_CLASS_INET)
|
|
continue;
|
|
continue;
|
|
- if (! q)
|
|
|
|
- q = req->questions[i];
|
|
|
|
switch (req->questions[i]->type) {
|
|
switch (req->questions[i]->type) {
|
|
case EVDNS_TYPE_A:
|
|
case EVDNS_TYPE_A:
|
|
case EVDNS_TYPE_AAAA:
|
|
case EVDNS_TYPE_AAAA:
|
|
@@ -96,7 +94,7 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
|
/* We always pick the first one of these questions, if there is
|
|
/* We always pick the first one of these questions, if there is
|
|
one. */
|
|
one. */
|
|
if (! supported_q)
|
|
if (! supported_q)
|
|
- supported_q = q;
|
|
|
|
|
|
+ supported_q = req->questions[i];
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|