[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10066: Oops. Routerlist_check_bug_417 should work even if we are no (in tor/trunk: . src/or)



Author: nickm
Date: 2007-04-30 13:46:11 -0400 (Mon, 30 Apr 2007)
New Revision: 10066

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r12579@catbus:  nickm | 2007-04-30 13:26:53 -0400
 Oops. Routerlist_check_bug_417 should work even if we are not on a server.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r12579] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-04-30 17:16:40 UTC (rev 10065)
+++ tor/trunk/src/or/routerlist.c	2007-04-30 17:46:11 UTC (rev 10066)
@@ -4757,6 +4757,8 @@
   int idx = -1;
 
   ri_generated = router_get_my_routerinfo();
+  if (!ri_generated)
+    return;
 
   r = digestmap_get(rl->identity_map,
                     ri_generated->cache_info.identity_digest);