diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 08:34:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 08:34:16 +0000 |
commit | 3182090730acfd9c3ccdea41786c4489ef155d6c (patch) | |
tree | 00eaa15c1c540926e76588470f994e0ad2f0d85e /nptl/pthread_join.c | |
parent | 36f0ccda0b1042ef049d4191ccbe09325ba4cc98 (diff) | |
download | glibc-3182090730acfd9c3ccdea41786c4489ef155d6c.tar.gz glibc-3182090730acfd9c3ccdea41786c4489ef155d6c.tar.xz glibc-3182090730acfd9c3ccdea41786c4489ef155d6c.zip |
(pthread_join): Limited checking for invalid descriptors.
Diffstat (limited to 'nptl/pthread_join.c')
-rw-r--r-- | nptl/pthread_join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c index 387f230576..84f993c700 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; |