aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-25 18:09:38 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-25 18:09:38 -0500
commit76582442a8baefe1b469f86d35ce2d00f01a00ca (patch)
tree005100cf30b802625b7a3ea8f81511f0f3b3a7c6 /src/common
parentc939c953aef7018f9581d934ef9713e50bd8df16 (diff)
downloadtor-76582442a8baefe1b469f86d35ce2d00f01a00ca.tar.gz
tor-76582442a8baefe1b469f86d35ce2d00f01a00ca.zip
Handle failing cases of DH allocation
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 8ad0f2f310..10f4440cb4 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -808,6 +808,7 @@ tor_tls_context_new(crypto_pk_env_t *identity, unsigned int key_lifetime)
goto error;
{
crypto_dh_env_t *dh = crypto_dh_new(DH_TYPE_TLS);
+ tor_assert(dh);
SSL_CTX_set_tmp_dh(result->ctx, _crypto_dh_env_get_dh(dh));
crypto_dh_free(dh);
}