From 69a0d3aebfa4725c72b4843369d2c0a7c71a569b Mon Sep 17 00:00:00 2001 From: venaas Date: Sat, 13 Sep 2008 07:30:36 +0000 Subject: allow %hex notation for strings in gconfig git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@376 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- dtls.c | 6 ++++-- tls.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dtls.c b/dtls.c index 14c34d3..6d605cb 100644 --- a/dtls.c +++ b/dtls.c @@ -330,8 +330,10 @@ void *dtlsservernew(void *arg) { X509_free(cert); exit: - SSL_shutdown(ssl); - SSL_free(ssl); + if (ssl) { + SSL_shutdown(ssl); + SSL_free(ssl); + } pthread_mutex_lock(¶ms->sesscache->mutex); freebios(params->sesscache->rbios); params->sesscache->rbios = NULL; diff --git a/tls.c b/tls.c index adf071f..4a9641f 100644 --- a/tls.c +++ b/tls.c @@ -365,8 +365,10 @@ void *tlsservernew(void *arg) { X509_free(cert); exit: - SSL_shutdown(ssl); - SSL_free(ssl); + if (ssl) { + SSL_shutdown(ssl); + SSL_free(ssl); + } ERR_remove_state(0); shutdown(s, SHUT_RDWR); close(s); -- cgit v1.1