about summary refs log tree commit diff
path: root/nptl_db/td_ta_tsd_iter.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl_db/td_ta_tsd_iter.c')
-rw-r--r--nptl_db/td_ta_tsd_iter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl_db/td_ta_tsd_iter.c b/nptl_db/td_ta_tsd_iter.c
index 9cfb1e8de0..cf5d919f86 100644
--- a/nptl_db/td_ta_tsd_iter.c
+++ b/nptl_db/td_ta_tsd_iter.c
@@ -1,5 +1,5 @@
 /* Iterate over a process's thread-specific data.
-   Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc.
+   Copyright (C) 1999,2000,2001,2002,2003,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
 
@@ -38,6 +38,10 @@ td_ta_tsd_iter (const td_thragent_t *ta_arg, td_key_iter_f *callback,
   if (! ta_ok (ta))
     return TD_BADTA;
 
+  err = _td_ta_check_nptl (ta);
+  if (err != TD_OK)
+    return err;
+
   /* This makes sure we have the size information on hand.  */
   addr = 0;
   err = _td_locate_field (ta,