From 45f6867e0f0861fa08fb0dd00e9a394954ac280a Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 9 Mar 2016 12:15:56 +0100 Subject: Use ERR_remove_thread_state() instead of ERR_remove_state(). --- dtls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dtls.c') diff --git a/dtls.c b/dtls.c index 4b04675..0d8da2e 100644 --- a/dtls.c +++ b/dtls.c @@ -285,7 +285,7 @@ void *dtlsserverwr(void *arg) { /* ssl might have changed while waiting */ pthread_mutex_unlock(&replyq->mutex); debug(DBG_DBG, "dtlsserverwr: exiting as requested"); - ERR_remove_state(0); + ERR_remove_thread_state(0); pthread_exit(NULL); } } @@ -407,7 +407,7 @@ exit: params->sesscache->expiry.tv_sec += delay; pthread_mutex_unlock(¶ms->sesscache->mutex); free(params); - ERR_remove_state(0); + ERR_remove_thread_state(0); pthread_exit(NULL); debug(DBG_DBG, "dtlsservernew: exiting"); } @@ -664,7 +664,7 @@ void *dtlsclientrd(void *arg) { } replyh(server, buf); } - ERR_remove_state(0); + ERR_remove_thread_state(0); server->clientrdgone = 1; return NULL; } -- cgit v1.1