aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 56949da5de..b52f90dbae 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -989,6 +989,8 @@ onion_new_cpath_build_state(uint8_t purpose, const char *exit_digest)
cpath_build_state_t *info;
routerinfo_t *exit;
router_get_routerlist(&rl);
+ if (!rl)
+ return NULL;
r = new_route_len(options.PathlenCoinWeight, purpose, rl->routers);
if (r < 1) /* must be at least 1 */
return NULL;