Ver código fonte

r17717@catbus: nickm | 2008-01-21 17:09:23 -0500
Fix certificate leak.


svn:r13218

Nick Mathewson 17 anos atrás
pai
commit
ddb753f87a
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/common/tortls.c

+ 2 - 0
src/common/tortls.c

@@ -898,6 +898,8 @@ tor_tls_handshake(tor_tls_t *tls)
         log_notice(LD_NET, "I think I got a v2 handshake!");
         log_notice(LD_NET, "I think I got a v2 handshake!");
         tls->wasV2Handshake = 1;
         tls->wasV2Handshake = 1;
       }
       }
+      if (cert)
+        X509_free(cert);
 #endif
 #endif
       SSL_set_cipher_list(tls->ssl, SERVER_CIPHER_LIST);
       SSL_set_cipher_list(tls->ssl, SERVER_CIPHER_LIST);
     }
     }