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:
parent
c9c7f3c892
commit
564028a07d
|
@ -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
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue