From e15bf1f6f0097c1f4bd71b508aa505efcb1bf543 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 30 Jul 2017 20:43:46 +0200 Subject: Don't pthread_join unless we actually created a thread. coverity: 1449504 --- radsecproxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index becc2d4..0b3f52e 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1919,7 +1919,8 @@ void *clientwr(void *arg) { for (i = 0; i < MAX_REQUESTS; i++) { if (server->clientrdgone) { - pthread_join(clientrdth, NULL); + if (conf->pdef->connecter) + pthread_join(clientrdth, NULL); goto errexit; } -- cgit v1.1