diff options
author | Linus Nordberg <linus@nordu.net> | 2016-03-09 12:15:56 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-08-31 15:45:49 +0200 |
commit | 45f6867e0f0861fa08fb0dd00e9a394954ac280a (patch) | |
tree | 278b11c1195ada459107a32b8634a42ca3516f7d | |
parent | fe74fb7ea6c1a31dbb0c7f4d6b214518993537a7 (diff) |
Use ERR_remove_thread_state() instead of ERR_remove_state().
-rw-r--r-- | dtls.c | 6 | ||||
-rw-r--r-- | radsecproxy.c | 2 | ||||
-rw-r--r-- | tls.c | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -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; } diff --git a/radsecproxy.c b/radsecproxy.c index 1590e65..7735a5c 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1983,7 +1983,7 @@ errexit: freeclsrvconf(conf); } freeserver(server, 1); - ERR_remove_state(0); + ERR_remove_thread_state(0); return NULL; } @@ -291,7 +291,7 @@ void *tlsclientrd(void *arg) { } } debug(DBG_INFO, "tlsclientrd: exiting for %s", server->conf->name); - ERR_remove_state(0); + ERR_remove_thread_state(0); SSL_shutdown(server->ssl); shutdown(server->sock, SHUT_RDWR); close(server->sock); @@ -325,7 +325,7 @@ void *tlsserverwr(void *arg) { /* ssl might have changed while waiting */ pthread_mutex_unlock(&replyq->mutex); debug(DBG_DBG, "tlsserverwr: exiting as requested"); - ERR_remove_state(0); + ERR_remove_thread_state(0); pthread_exit(NULL); } } @@ -450,7 +450,7 @@ exit: SSL_shutdown(ssl); SSL_free(ssl); } - ERR_remove_state(0); + ERR_remove_thread_state(0); shutdown(s, SHUT_RDWR); close(s); pthread_exit(NULL); |