Explorar o código

Fix leakable rsa key

svn:r3099
Nick Mathewson %!s(int64=21) %!d(string=hai) anos
pai
achega
0f49fd3bcd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/common/tortls.c

+ 2 - 0
src/common/tortls.c

@@ -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: