aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_join.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 08:34:16 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 08:34:16 +0000
commit3182090730acfd9c3ccdea41786c4489ef155d6c (patch)
tree00eaa15c1c540926e76588470f994e0ad2f0d85e /nptl/pthread_join.c
parent36f0ccda0b1042ef049d4191ccbe09325ba4cc98 (diff)
downloadglibc-3182090730acfd9c3ccdea41786c4489ef155d6c.zip
glibc-3182090730acfd9c3ccdea41786c4489ef155d6c.tar.gz
glibc-3182090730acfd9c3ccdea41786c4489ef155d6c.tar.bz2
(pthread_join): Limited checking for invalid descriptors.
Diffstat (limited to 'nptl/pthread_join.c')
-rw-r--r--nptl/pthread_join.c2
1 files changed, 1 insertions, 1 deletions
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;