From 3182090730acfd9c3ccdea41786c4489ef155d6c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 21 Feb 2003 08:34:16 +0000 Subject: [PATCH] (pthread_join): Limited checking for invalid descriptors. --- nptl/pthread_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c index 387f230..84f993c 100644 --- a/nptl/pthread_join.c +++ b/nptl/pthread_join.c @@ -40,7 +40,7 @@ pthread_join (threadid, thread_return) struct pthread *pd = (struct pthread *) threadid; /* Make sure the descriptor is valid. */ - if (DEBUGGING_P && __find_in_stack_list (pd) == NULL) + if ((DEBUGGING_P && __find_in_stack_list (pd) == NULL) || pd->tid <= 0) /* Not a valid thread handle. */ return ESRCH; -- 2.7.4