From: Ulrich Drepper Date: Fri, 21 Feb 2003 08:35:19 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_2~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49dc759f94148d794f9698823a09a27526559e85;p=thirdparty%2Fglibc.git Update. 2003-02-21 Ulrich Drepper * pthread_join.c (pthread_join): Limited checking for invalid descriptors. * pthread_timedjoin.c (pthread_timedjoin_np): Likewise. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index f650542dbf1..2c5c3382312 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2003-02-21 Ulrich Drepper + + * pthread_join.c (pthread_join): Limited checking for invalid + descriptors. + * pthread_timedjoin.c (pthread_timedjoin_np): Likewise. + 2003-02-20 Ulrich Drepper * pthread_create.c (deallocate_tsd): Reset found_nonzero at the diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c index dd51fea4aa0..0883f94f60f 100644 --- a/nptl/pthread_timedjoin.c +++ b/nptl/pthread_timedjoin.c @@ -42,7 +42,7 @@ pthread_timedjoin_np (threadid, thread_return, abstime) int result; /* 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;