This commit is contained in:
Ulrich Drepper 2002-09-29 07:03:57 +00:00
parent d8427e20ba
commit 1b80b4f1c9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-29 Ulrich Drepper <drepper@redhat.com>
* td_thr_tsd.c (td_thr_tsd): Read correct entry from pthread_keys
array.
2002-09-28 Andreas Jaeger <aj@suse.de>
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Fix reference to dtv.

View File

@ -51,7 +51,7 @@ td_thr_tsd (const td_thrhandle_t *th, const thread_key_t tk, void **data)
return TD_BADKEY;
/* Get the key entry. */
if (ps_pdread (th->th_ta_p->ph, keys, &key,
if (ps_pdread (th->th_ta_p->ph, &keys[tk], &key,
sizeof (struct pthread_key_struct)) != PS_OK)
return TD_ERR; /* XXX Other error value? */