]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
don't try to build intro circs until you've fetched the directory
authorRoger Dingledine <arma@torproject.org>
Wed, 7 Apr 2004 22:48:06 +0000 (22:48 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 7 Apr 2004 22:48:06 +0000 (22:48 +0000)
svn:r1541

src/or/main.c
src/or/rendservice.c

index 0842a1c50a36b55a5fec444949ee0a72e52033c5..6262abce34f169e87b2aa9ae013ae6c1bcb782ac 100644 (file)
@@ -333,7 +333,8 @@ static void run_scheduled_events(time_t now) {
    *    our descriptor (if any). */
   if(time_to_fetch_directory < now) {
     /* it's time to fetch a new directory and/or post our descriptor */
-    rend_services_init(); /* make new intro points and re-upload if necessary */
+    if(has_fetched_directory)
+      rend_services_init(); /* make new intro points and re-upload if necessary */
     if(options.ORPort) {
       router_rebuild_descriptor();
       router_upload_dir_desc_to_dirservers();
index 9b01f7f3c624123e5cf4e4c955e78af57bf14360..b42679f1f7423272cc46fff68edac5c469964d69 100644 (file)
@@ -704,7 +704,7 @@ int rend_services_init(void) {
                                          service->intro_exclude_nodes,
                                          exclude_routers);
       if (!router) {
-        log_fn(LOG_WARN, "Can't establish more than %d introduction points",
+        log_fn(LOG_WARN, "Could only establish %d introduction points",
                smartlist_len(service->intro_nodes));
         break;
       }