diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-14 03:44:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-14 03:44:45 +0000 |
commit | bd10bf4b5bbe022f85bbf8d56e6afa50ad76bf60 (patch) | |
tree | 429e8aa256b2b368560f507808a9befe67aeb9ce /src/or/router.c | |
parent | 89280e6c2012de729a41dcea8fe6ba0d4d0a5530 (diff) | |
download | tor-bd10bf4b5bbe022f85bbf8d56e6afa50ad76bf60.tar.gz tor-bd10bf4b5bbe022f85bbf8d56e6afa50ad76bf60.zip |
Try to always dtrt if routerlist==NULL
svn:r2489
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index cf018efb04..5374631072 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -386,6 +386,7 @@ void router_retry_connections(void) { tor_assert(server_mode()); router_get_routerlist(&rl); + if (!rl) return; for (i=0;i < smartlist_len(rl->routers);i++) { router = smartlist_get(rl->routers, i); if(router_is_me(router)) |