r14472@tombo: nickm | 2008-02-26 13:44:08 -0500

Backport trivial fix for problem that kept nameserver errors from getting reported.


svn:r13741
This commit is contained in:
Nick Mathewson 2008-02-26 19:27:39 +00:00
parent c9c7f3c892
commit 564028a07d
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Changes in versino 0.1.2.20 - 2008-??-??
- We were leaking a file descriptor if Tor started with a zero-length
cached-descriptors file. Patch by freddy77.
- Detect size overflow in zlib code.
- Fix a pointer error that kept us from reporting nameserver errors.
Changes in version 0.1.2.19 - 2008-01-17

View File

@ -185,7 +185,7 @@ evdns_log_cb(int warn, const char *msg)
}
if (!strcmpstart(msg, "Nameserver ") && (cp=strstr(msg, " has failed: "))) {
char *ns = tor_strndup(msg+11, cp-(msg+11));
const char *err = strchr(cp, ':'+2);
const char *err = strchr(cp, ':')+2;
/* Don't warn about a single failed nameserver; we'll warn with 'all
* nameservers have failed' if we're completely out of nameservers;
* otherwise, the situation is tolerable. */