diff options
Diffstat (limited to 'linuxthreads_db/td_ta_event_getmsg.c')
-rw-r--r-- | linuxthreads_db/td_ta_event_getmsg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads_db/td_ta_event_getmsg.c b/linuxthreads_db/td_ta_event_getmsg.c index 6b56e0d5e7..4c635dc10d 100644 --- a/linuxthreads_db/td_ta_event_getmsg.c +++ b/linuxthreads_db/td_ta_event_getmsg.c @@ -34,6 +34,10 @@ td_ta_event_getmsg (const td_thragent_t *ta, td_event_msg_t *msg) LOG (__FUNCTION__); + /* Test whether the TA parameter is ok. */ + if (! ta_ok (ta)) + return TD_BADTA; + /* Get the pointer to the thread descriptor with the last event. */ if (ps_pdread (ta->ph, ta->pthread_last_event, &addr, sizeof (void *)) != PS_OK) |