Fix a segfault when starting a dir cache

svn:r4836
This commit is contained in:
Nick Mathewson 2005-08-25 20:45:53 +00:00
parent 54a6a8f0ef
commit 4dc3cb9fd9

View File

@ -631,6 +631,8 @@ dirserv_log_unreachable_servers(time_t now) {
*/
void
dirserv_router_has_begun_reachability_testing(char *digest, time_t now) {
if (!descriptor_list)
return;
SMARTLIST_FOREACH(descriptor_list, routerinfo_t *, ri,
{
if (!memcmp(ri->identity_digest, digest, DIGEST_LEN))