diff options
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
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; }); } |