summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-08-31 15:49:11 +0200
committerLinus Nordberg <linus@nordu.net>2016-08-31 15:49:11 +0200
commit01a9da72ca50d96ac8490c5cdf4dd5e52ffe42b4 (patch)
treec17ba9e21ad74edb590cffab9601257f79ee6fd9 /tls.c
parent45f6867e0f0861fa08fb0dd00e9a394954ac280a (diff)
Don't call ERR_remove_thread_state().
Not needed as of openssl-1.1, see https://www.openssl.org/docs/man1.1.0/crypto/ERR_remove_thread_state.html
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tls.c b/tls.c
index d9a4b81..143c900 100644
--- a/tls.c
+++ b/tls.c
@@ -291,7 +291,6 @@ void *tlsclientrd(void *arg) {
}
}
debug(DBG_INFO, "tlsclientrd: exiting for %s", server->conf->name);
- ERR_remove_thread_state(0);
SSL_shutdown(server->ssl);
shutdown(server->sock, SHUT_RDWR);
close(server->sock);
@@ -325,7 +324,6 @@ void *tlsserverwr(void *arg) {
/* ssl might have changed while waiting */
pthread_mutex_unlock(&replyq->mutex);
debug(DBG_DBG, "tlsserverwr: exiting as requested");
- ERR_remove_thread_state(0);
pthread_exit(NULL);
}
}
@@ -450,7 +448,6 @@ exit:
SSL_shutdown(ssl);
SSL_free(ssl);
}
- ERR_remove_thread_state(0);
shutdown(s, SHUT_RDWR);
close(s);
pthread_exit(NULL);