mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
68d5b6bc52
When using libevent 2, we use evdns_base_resolve_*(). When not, we fake evdns_base_resolve_*() using evdns_resolve_*(). Our old check was looking for negative values (like libevent 2 returns), but our eventdns.c code returns 1. This code makes the check just test for nonzero. Note that this broken check was not for _resolve_ failures or even for failures to _launch_ a resolve: it was for failures to _create_ or _encode_ a resolve request. Bug introduced in 81eee0ecfff3dac1e9438719d2f7dc0ba7e84a71; found by lodger; uploaded to trac by rransom. Bug 2363. Fix on 0.2.2.6-alpha.
7 lines
363 B
Plaintext
7 lines
363 B
Plaintext
o Minor bugfixes
|
|
- Correctly detect failures to create DNS requests when using Libevent
|
|
versions before v2. (Before Libevent 2, we used our own evdns
|
|
implementation. Its return values for Libevent's evdns_resolve_*()
|
|
functions are not consistent with those from Libevent.) Found by
|
|
Lodger; fixes bug 2363; bugfix on 0.2.2.6-alpha.
|