Explorar el Código

Fix a crash when accessing hidden services: it would work the first
time you use a given introduction point for your service, but
on subsequent requests we'd be using garbage memory. Fixed by
Karsten Loesing. Bugfix on 0.2.0.12-alpha.


svn:r12913

Roger Dingledine hace 16 años
padre
commit
a223f5db03
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 4 0
      ChangeLog
  2. 0 1
      src/or/rendclient.c

+ 4 - 0
ChangeLog

@@ -4,6 +4,10 @@ Changes in version 0.2.0.14-alpha - 2007-12-??
       unexpected (it used to be in our networkstatus when we started
       unexpected (it used to be in our networkstatus when we started
       fetching it, but it isn't in our current networkstatus), and we
       fetching it, but it isn't in our current networkstatus), and we
       aren't using bridges. Bugfix on 0.2.0.x.
       aren't using bridges. Bugfix on 0.2.0.x.
+    - Fix a crash when accessing hidden services: it would work the first
+      time you use a given introduction point for your service, but
+      on subsequent requests we'd be using garbage memory. Fixed by
+      Karsten Loesing. Bugfix on 0.2.0.12-alpha.
 
 
   o Minor bugfixes:
   o Minor bugfixes:
     - Make the unit tests build again.
     - Make the unit tests build again.

+ 0 - 1
src/or/rendclient.c

@@ -549,7 +549,6 @@ rend_client_get_random_intro(const char *query)
       goto again;
       goto again;
     }
     }
     extend_info_free(intro->extend_info);
     extend_info_free(intro->extend_info);
-    intro = tor_malloc_zero(sizeof(rend_intro_point_t));
     intro->extend_info = extend_info_from_router(router);
     intro->extend_info = extend_info_from_router(router);
   }
   }
   return extend_info_dup(intro->extend_info);
   return extend_info_dup(intro->extend_info);