|
@@ -160,8 +160,9 @@ 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;
|
|
|
- tor_assert(err);
|
|
|
+ const char *colon = strchr(cp, ':');
|
|
|
+ tor_assert(colon);
|
|
|
+ const char *err = colon+2;
|
|
|
|
|
|
* nameservers have failed' if we're completely out of nameservers;
|
|
|
* otherwise, the situation is tolerable. */
|