From c126b79f07a46b506e19733ff312fe6540ae2096 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 19 Feb 2008 22:32:32 +0000 Subject: be more explicit about a harmless thing that freaked veracode out svn:r13592 --- src/or/dns.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/dns.c') 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. */ -- cgit v1.2.3-54-g00ecf