mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge branch 'bug18710_025' into maint-0.2.8
This commit is contained in:
commit
31332a878d
6
changes/bug18710
Normal file
6
changes/bug18710
Normal file
@ -0,0 +1,6 @@
|
||||
o Major bugfixes (DNS proxy):
|
||||
- Stop a crash that could occur when a client running with DNSPort
|
||||
received a query with multiple address types, where the first
|
||||
address type was not supported. Found and fixed by Scott Dial.
|
||||
Fixes bug 18710; bugfix on 0.2.5.4-alpha.
|
||||
|
@ -88,8 +88,6 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
||||
for (i = 0; i < req->nquestions; ++i) {
|
||||
if (req->questions[i]->dns_question_class != EVDNS_CLASS_INET)
|
||||
continue;
|
||||
if (! q)
|
||||
q = req->questions[i];
|
||||
switch (req->questions[i]->type) {
|
||||
case EVDNS_TYPE_A:
|
||||
case EVDNS_TYPE_AAAA:
|
||||
@ -97,7 +95,7 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
||||
/* We always pick the first one of these questions, if there is
|
||||
one. */
|
||||
if (! supported_q)
|
||||
supported_q = q;
|
||||
supported_q = req->questions[i];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user