mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix a logic error that would automatically reject all but the first configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for part of 813/868. Spotted by coderman
svn:r17569
This commit is contained in:
parent
9854ebadde
commit
d8027aa689
@ -1,4 +1,9 @@
|
|||||||
Changes in version 0.2.1.9-alpha - 200?-??-??
|
Changes in version 0.2.1.9-alpha - 200?-??-??
|
||||||
|
o Major bugfixes:
|
||||||
|
- Fix a logic error that would automatically reject all but the first
|
||||||
|
configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for part
|
||||||
|
of bug 813/868. Bug spotted by coderman.
|
||||||
|
|
||||||
o Minor features:
|
o Minor features:
|
||||||
- Give a better error message when an overzealous init script says,
|
- Give a better error message when an overzealous init script says,
|
||||||
"sudo -u username tor --user username". Makes Bug 882 easier
|
"sudo -u username tor --user username". Makes Bug 882 easier
|
||||||
|
@ -2224,7 +2224,7 @@ _evdns_nameserver_add_impl(const struct sockaddr *address,
|
|||||||
int err = 0;
|
int err = 0;
|
||||||
if (server) {
|
if (server) {
|
||||||
do {
|
do {
|
||||||
if (!sockaddr_eq(address, (struct sockaddr *)&server->address, 1)) {
|
if (sockaddr_eq(address, (struct sockaddr *)&server->address, 1)) {
|
||||||
log(EVDNS_LOG_DEBUG, "Duplicate nameserver.");
|
log(EVDNS_LOG_DEBUG, "Duplicate nameserver.");
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user