]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix leakable rsa key
authorNick Mathewson <nickm@torproject.org>
Tue, 7 Dec 2004 06:48:02 +0000 (06:48 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 7 Dec 2004 06:48:02 +0000 (06:48 +0000)
svn:r3099

src/common/tortls.c

index 01d5b58795cc2a78b63c9975897bff85c028e505..647bf26166bc51f43950231ec65124031692abe6 100644 (file)
@@ -372,6 +372,8 @@ tor_tls_context_new(crypto_pk_env_t *identity,
     tor_free(global_tls_context);
   }
   global_tls_context = result;
+  if (rsa)
+    crypto_free_pk_env(rsa);
   return 0;
 
  error: