diff options
| author | Linus Nordberg <linus@nordu.net> | 2017-07-30 20:43:46 +0200 |
|---|---|---|
| committer | Linus Nordberg <linus@nordu.net> | 2017-07-30 20:43:46 +0200 |
| commit | e15bf1f6f0097c1f4bd71b508aa505efcb1bf543 (patch) | |
| tree | 4a1b3b2144faa01320ed53dcd97871ae98a33a45 | |
| parent | 3ecfe22e45031757e95358b7b019ac8d38418518 (diff) | |
Don't pthread_join unless we actually created a thread.
coverity: 1449504
| -rw-r--r-- | radsecproxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
