mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix a seg fault if we ask an authdirserver for a descriptor by
fingerprint but he doesn't know about him. svn:r5023
This commit is contained in:
+1
-1
@@ -1290,7 +1290,7 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key)
|
||||
smartlist_add(descs_out, router_get_my_routerinfo());
|
||||
} else {
|
||||
routerinfo_t *ri = router_get_by_digest(d);
|
||||
if (d)
|
||||
if (ri)
|
||||
smartlist_add(descs_out,ri);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user