summaryrefslogtreecommitdiff
path: root/dtls.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-09-13 07:30:36 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-09-13 07:30:36 +0000
commit69a0d3aebfa4725c72b4843369d2c0a7c71a569b (patch)
treef537d264b98fd5afe3651540eea92c30f520bd17 /dtls.c
parenta1ea5fc103e04c1d333bebb6e68b3699a414d1e9 (diff)
allow %hex notation for strings in gconfig
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@376 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'dtls.c')
-rw-r--r--dtls.c6
1 files changed, 4 insertions, 2 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(&params->sesscache->mutex);
freebios(params->sesscache->rbios);
params->sesscache->rbios = NULL;