mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Fix a segfault when starting a dir cache
svn:r4836
This commit is contained in:
parent
54a6a8f0ef
commit
4dc3cb9fd9
@ -631,6 +631,8 @@ dirserv_log_unreachable_servers(time_t now) {
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
dirserv_router_has_begun_reachability_testing(char *digest, time_t now) {
|
dirserv_router_has_begun_reachability_testing(char *digest, time_t now) {
|
||||||
|
if (!descriptor_list)
|
||||||
|
return;
|
||||||
SMARTLIST_FOREACH(descriptor_list, routerinfo_t *, ri,
|
SMARTLIST_FOREACH(descriptor_list, routerinfo_t *, ri,
|
||||||
{
|
{
|
||||||
if (!memcmp(ri->identity_digest, digest, DIGEST_LEN))
|
if (!memcmp(ri->identity_digest, digest, DIGEST_LEN))
|
||||||
|
Loading…
Reference in New Issue
Block a user