All pastes #914977 Raw Edit

Something

public text v1 · immutable
#914977 ·published 2008-02-23 12:01 UTC
rendered paste body
===================================================================
--- src/or/dirserv.c    (revision 13684)
+++ src/or/dirserv.c    (working copy)
@@ -2670,7 +2670,8 @@
     SMARTLIST_FOREACH(digests, const char *, d,
        {
          if (router_digest_is_me(d)) {
-           smartlist_add(descs_out, &(router_get_my_routerinfo()->cache_info));
+           if (router_get_my_routerinfo()) /* make sure desc_routerinfo exists */
+             smartlist_add(descs_out, &(router_get_my_routerinfo()->cache_info));
          } else {
            routerinfo_t *ri = router_get_by_digest(d);
            /* Don't actually serve a descriptor that everyone will think is