mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Avoid tor_fragile_assert() failure with DNSPort on RESOLVED_TYPE_ERROR
The tor_fragile_assert() bug has existed here since c8a5e2d588
in tor-0.2.1.7-alpha forever, but tor_fragile_assert() was mostly a
no-op until 0.2.9.1-alpha.
Fixes bug 19869.
This commit is contained in:
parent
9a3adb07c4
commit
d288704023
4
changes/bug19869
Normal file
4
changes/bug19869
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (DNSPort):
|
||||
- On DNSPort, stop logging a BUG warning on a failed hostname lookup.
|
||||
Fixes bug 19869; bugfix on 0.2.9.1-alpha.
|
||||
|
@ -290,6 +290,10 @@ evdns_get_orig_address(const struct evdns_server_request *req,
|
||||
case RESOLVED_TYPE_IPV6:
|
||||
type = EVDNS_TYPE_AAAA;
|
||||
break;
|
||||
case RESOLVED_TYPE_ERROR:
|
||||
case RESOLVED_TYPE_ERROR_TRANSIENT:
|
||||
/* Addr doesn't matter, since we're not sending it back in the reply.*/
|
||||
return addr;
|
||||
default:
|
||||
tor_fragile_assert();
|
||||
return addr;
|
||||
|
Loading…
Reference in New Issue
Block a user