aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-08 22:30:17 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-08 22:30:17 +0000
commitb76f61ee6662bac36a362fa6b34babeded2b7913 (patch)
treec7b24bfb5e827e293e5331f4446c0e678bc9b675 /src
parent43c253958e70acd7e6d47f952e7896d537090a4a (diff)
downloadtor-b76f61ee6662bac36a362fa6b34babeded2b7913.tar
tor-b76f61ee6662bac36a362fa6b34babeded2b7913.tar.gz
If we stop knowing about a dirserver between request and answer, do not die.
svn:r5351
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 82f46f304..16a5502f2 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1601,7 +1601,8 @@ dir_networkstatus_download_failed(smartlist_t *failed)
base16_decode(digest, DIGEST_LEN, fp, strlen(fp));
dir = router_get_trusteddirserver_by_digest(digest);
- ++dir->n_networkstatus_failures;
+ if (dir)
+ ++dir->n_networkstatus_failures;
});
}