Commit f9ea851f authored by Linus Nordberg's avatar Linus Nordberg

Don't pthread_join unless we actually created a thread.

coverity: 1449504
parent 2a75a2bb
......@@ -1915,7 +1915,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment