diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-18 15:35:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-18 15:35:21 +0000 |
commit | 7511fbf993271312875d0648166694cc58117060 (patch) | |
tree | 57e08c4ab87356af3149d328cf56582ae8ad54a4 /src/common/tortls.c | |
parent | 9da1714676c018e1b4a8c5b52c7be7a5a6579243 (diff) | |
download | tor-7511fbf993271312875d0648166694cc58117060.tar.gz tor-7511fbf993271312875d0648166694cc58117060.zip |
Resolve some XXXs
svn:r1889
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 8dc160702c..cfca993caf 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -375,7 +375,10 @@ tor_tls_context_new(crypto_pk_env_t *identity, SSL_CTX_free(result->ctx); if (result) free(result); - /* leak certs XXXX ? */ + if (cert) + X509_free(cert); + if (idcert) + X509_free(cert); return -1; } @@ -641,7 +644,8 @@ tor_tls_verify(tor_tls *tls, crypto_pk_env_t *identity_key) if (id_pkey) EVP_PKEY_free(id_pkey); - /* XXXX This should never get invoked, but let's make sure for now. */ + /* This should never get invoked, but let's make sure in case OpenSSL + * acts unexpectedly. */ tls_log_errors(LOG_WARN, "finishing tor_tls_verify"); return r; |