diff options
author | Linus Nordberg <linus@nordu.net> | 2016-03-09 12:15:56 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-09-21 13:15:11 +0200 |
commit | eb85a9842b4dbc5769f407a7253a276afb1f1ae4 (patch) | |
tree | 5772d1d8493cba0bc965003e145977636a04a901 /tls.c | |
parent | 668f81b43785cd4181ffc1ca898f6301100b094f (diff) |
Use ERR_remove_thread_state() instead of ERR_remove_state().
Diffstat (limited to 'tls.c')
-rw-r--r-- | tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } } @@ -451,7 +451,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); |