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(). --- tls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tls.c') diff --git a/tls.c b/tls.c index d33fc1b..d9a4b81 100644 --- a/tls.c +++ b/tls.c @@ -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); -- cgit v1.1