summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-03-09 12:15:56 +0100
committerLinus Nordberg <linus@nordu.net>2016-09-21 13:15:11 +0200
commiteb85a9842b4dbc5769f407a7253a276afb1f1ae4 (patch)
tree5772d1d8493cba0bc965003e145977636a04a901
parent668f81b43785cd4181ffc1ca898f6301100b094f (diff)
Use ERR_remove_thread_state() instead of ERR_remove_state().
-rw-r--r--dtls.c6
-rw-r--r--radsecproxy.c2
-rw-r--r--tls.c6
3 files changed, 7 insertions, 7 deletions
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(&params->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;
}
diff --git a/tls.c b/tls.c
index 38f3bb3..d127d7b 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);
}
}
@@ -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);