]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a memory leak when v3 directory authorities load their keys
authorRoger Dingledine <arma@torproject.org>
Sun, 17 May 2009 05:22:29 +0000 (01:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 17 May 2009 06:04:59 +0000 (02:04 -0400)
and cert from disk. Bugfix on 0.2.0.1-alpha.

ChangeLog
src/or/router.c

index b84da4ceebb86239dacdd367ba6751b9a12de0a5..21569d099972144b9fde0c8fee1c1885e8d070a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@ Changes in version 0.2.1.15??? - ????-??-??
       unhappy.  Bugfix on 0.2.0.x.
     - Fix use of freed memory when deciding to mark a non-addable
       descriptor as never-downloadable.  Bugfix on 0.2.1.9-alpha.
+    - Fix a memory leak when v3 directory authorities load their keys
+      and cert from disk. Bugfix on 0.2.0.1-alpha.
 
 
 Changes in version 0.2.1.14-rc - 2009-04-12
index 45ea18b14f65e18fc621ee5818fd857f869e9c61..da922b75081ac8a6bec26d58d4246f0986c45dbb 100644 (file)
@@ -330,9 +330,6 @@ load_authority_keyset(int legacy, crypto_pk_env_t **key_out,
              "certificate");
     goto done;
   }
-  parsed->cache_info.signed_descriptor_body = cert;
-  parsed->cache_info.signed_descriptor_len = eos-cert;
-  cert = NULL;
 
   if (*key_out)
     crypto_free_pk_env(*key_out);