summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/httpauthd.c')
-rw-r--r--daemon/httpauthd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index d3efbe9..e5b8dcb 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -362,7 +362,7 @@ int main(int argc, char* argv[])
}
/* Start a new thread if neccessary */
- if(fd != 0 && threads[i].tid == 0)
+ if(fd != -1 && threads[i].tid == 0)
{
threads[i].fd = fd;
r = pthread_create(&(threads[i].tid), NULL, httpauth_thread,