about summary refs log tree commit diff
path: root/linuxthreads_db/td_ta_event_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads_db/td_ta_event_addr.c')
-rw-r--r--linuxthreads_db/td_ta_event_addr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads_db/td_ta_event_addr.c b/linuxthreads_db/td_ta_event_addr.c
index 4edd54c55d..7f217f1024 100644
--- a/linuxthreads_db/td_ta_event_addr.c
+++ b/linuxthreads_db/td_ta_event_addr.c
@@ -31,6 +31,10 @@ td_ta_event_addr (const td_thragent_t *ta, td_event_e event, td_notify_t *addr)
 
   LOG (__FUNCTION__);
 
+  /* Test whether the TA parameter is ok.  */
+  if (! ta_ok (ta))
+    return TD_BADTA;
+
   switch (event)
     {
     case TD_CREATE: