summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-19 22:32:32 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-19 22:32:32 +0000
commitc126b79f07a46b506e19733ff312fe6540ae2096 (patch)
tree855d4882ff809f5fb49fbad04f22bbaf82c3f85d
parent4ccffd7aea388f3df83b7a3bef790acf718198e9 (diff)
downloadtor-c126b79f07a46b506e19733ff312fe6540ae2096.tar.gz
tor-c126b79f07a46b506e19733ff312fe6540ae2096.zip
be more explicit about a harmless thing that freaked veracode out
svn:r13592
-rw-r--r--src/or/dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index eca6905e82..c45caf09d4 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -157,6 +157,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);
+ tor_assert(err);
/* 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. */